diff --git a/ftplugin/bib.vim b/ftplugin/bib.vim index 68596ff..58a19dc 100644 --- a/ftplugin/bib.vim +++ b/ftplugin/bib.vim @@ -13,6 +13,9 @@ if exists('b:did_ftplugin') endif let b:did_ftplugin = 1 +setlocal comments=sO:%\ -,mO:%\ \ ,eO:%%,:% +setlocal commentstring=\%\ %s + function! s:map(mode, lhs, rhs, ...) if !hasmapto(a:rhs, a:mode) \ && (a:0 > 0 || maparg(a:lhs, a:mode) ==# '')