From f6daf616ca7ccb48b11a3af9d6bb793fe985b9df Mon Sep 17 00:00:00 2001 From: Jamie Strandboge Date: Tue, 16 Jun 2026 14:12:58 -0500 Subject: [PATCH] fix: add ftplugin/cve.vim for proper list indents of multiline entries --- extras/vim/ftplugin/cve.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 extras/vim/ftplugin/cve.vim 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\+'