commit 21c5a7f796a96fd05e06a8c3015cbc6d07e9409c parent 7144df6b96cc37defaa2b08a39f5b41a87614939 Author: Tinmarino <tinmarino@gmail.com> Date: Sun, 9 Aug 2020 16:14:31 -0400 Feature: Better joining bullet and task lists (set comments) Diffstat:
M | ftplugin/vimwiki.vim | | | 16 | ++++++++++++++-- |
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim @@ -136,11 +136,23 @@ setlocal nosmartindent setlocal nocindent " Set comments: to insert and format 'comments' or cheat -setlocal comments= " Used to break blockquote prepending one on each new line (see: #915) -setlocal comments+=n:> +" B like blank character follow +" blockquotes +let comments = 'b:>' +for bullet in vimwiki#vars#get_syntaxlocal('bullet_types') + " task list + for point in vimwiki#vars#get_wikilocal('listsyms_list') + \ + [vimwiki#vars#get_wikilocal('listsym_rejected')] + let comments .= ',b:' . bullet . ' [' . point . ']' + endfor + " list + let comments .= ',b:' . bullet +endfor +let &l:comments = comments " Set format options (:h fo-table) +" Disable autocomment because, vimwiki does it better setlocal formatoptions-=c setlocal formatoptions-=r setlocal formatoptions-=o