Fix #540: Support comments in bib files

This commit is contained in:
Karl Yngve Lervåg 2016-09-10 23:14:25 +02:00
parent 379acc3150
commit 58d8cb4ad5

View File

@ -13,6 +13,9 @@ if exists('b:did_ftplugin')
endif endif
let b:did_ftplugin = 1 let b:did_ftplugin = 1
setlocal comments=sO:%\ -,mO:%\ \ ,eO:%%,:%
setlocal commentstring=\%\ %s
function! s:map(mode, lhs, rhs, ...) function! s:map(mode, lhs, rhs, ...)
if !hasmapto(a:rhs, a:mode) if !hasmapto(a:rhs, a:mode)
\ && (a:0 > 0 || maparg(a:lhs, a:mode) ==# '') \ && (a:0 > 0 || maparg(a:lhs, a:mode) ==# '')