Feature: Add option g:vimwiki_commentstring to disable vimwiki commentstring (PR #946 from @BirgerNi )

This commit is contained in:
BirgerNi
2020-07-31 00:04:43 +02:00
committed by GitHub
parent 66a294d76f
commit 0a5a33af19
3 changed files with 59 additions and 4 deletions

View File

@ -9,8 +9,12 @@ if exists('b:did_ftplugin')
endif
let b:did_ftplugin = 1 " Don't load another plugin for this buffer
setlocal commentstring=%%%s
" Enable/disable commentstring %%%s
if !exists('g:vimwiki_commentstring')
setlocal commentstring=%%%s
elseif g:vimwiki_commentstring != ""
let &l:commentstring=g:vimwiki_commentstring
endif
if vimwiki#vars#get_global('conceallevel') && exists('+conceallevel')
let &l:conceallevel = vimwiki#vars#get_global('conceallevel')