aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:55:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:55:59 +1200
commit25a50babaff0b72ea18f14ff35e9a972f27cda0e (patch)
tree354690f539c8d78e12115ac562db0ae71cabe7a4 /vim
parenta5621106ace078f8a805612fb7156d30ccc72ddf (diff)
downloaddotfiles-25a50babaff0b72ea18f14ff35e9a972f27cda0e.tar.gz
Remove redundancies from 'formatoptions' setting
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown.vim4
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<'