aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:34:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:34:07 +1200
commitef052eb47134357a076b6ec619fd3c6a24ca2c12 (patch)
treef2941805500232ccbbd042657a726b4bf38ffb33 /vim
parent60dbfac9231d3f8ff111bce3ac87d4b30f044d36 (diff)
downloaddotfiles-ef052eb47134357a076b6ec619fd3c6a24ca2c12.tar.gz
Use variable assignment for complex pattern
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown.vim2
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()