diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:55:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:55:59 +1200 |
commit | 25a50babaff0b72ea18f14ff35e9a972f27cda0e (patch) | |
tree | 354690f539c8d78e12115ac562db0ae71cabe7a4 /vim/ftplugin | |
parent | Break apart 'comments' definitions (diff) | |
download | dotfiles-25a50babaff0b72ea18f14ff35e9a972f27cda0e.tar.gz dotfiles-25a50babaff0b72ea18f14ff35e9a972f27cda0e.zip |
Remove redundancies from 'formatoptions' setting
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/markdown.vim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index a455a00c..2bfdebcb 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -13,9 +13,7 @@ let &l:commentstring = '> %s' let b:undo_ftplugin = 'setlocal comments< commentstring<' " Specify format options -setlocal formatoptions+=tcqln -setlocal formatoptions-=o -setlocal formatoptions-=r +setlocal formatoptions+=ln let &l:formatlistpat = '^\s*\d\+\.\s\+\|^[-*+]\s\+\|^\[^\ze[^\]]\+\]:' let b:undo_ftplugin .= '|setlocal formatoptions< formatlistpat<' |