diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:34:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:34:07 +1200 |
commit | ef052eb47134357a076b6ec619fd3c6a24ca2c12 (patch) | |
tree | f2941805500232ccbbd042657a726b4bf38ffb33 | |
parent | Correct definition for b:undo_ftplugin (diff) | |
download | dotfiles-ef052eb47134357a076b6ec619fd3c6a24ca2c12.tar.gz dotfiles-ef052eb47134357a076b6ec619fd3c6a24ca2c12.zip |
Use variable assignment for complex pattern
-rw-r--r-- | vim/ftplugin/markdown.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index cd2c2b08..db8e78f9 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -13,7 +13,7 @@ let b:undo_ftplugin = 'setlocal comments< commentstring<' setlocal formatoptions+=tcqln setlocal formatoptions-=o setlocal formatoptions-=r -setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]: +let &l:formatlistpat = '^\s*\d\+\.\s\+\|^[-*+]\s\+\|^\[^\ze[^\]]\+\]:' let b:undo_ftplugin .= '|setlocal formatoptions< formatlistpat<' function! MarkdownFold() |