diff --git a/extras/vim/ftplugin/cve.vim b/extras/vim/ftplugin/cve.vim new file mode 100644 index 0000000..daf8b86 --- /dev/null +++ b/extras/vim/ftplugin/cve.vim @@ -0,0 +1,10 @@ +if exists('b:did_ftplugin') | finish | endif +let b:did_ftplugin = 1 + +" retain default autoindent behavior, but also allow reflowing 'gqgq' with +" lists properly +setlocal autoindent +setlocal formatoptions+=n +setlocal comments= " let formatlistpat own all bullet reflow +setlocal formatlistpat& +let &l:formatlistpat .= '\|^\s*[-*+]\s\+'