Fix #540: Support comments in bib files
This commit is contained in:
parent
379acc3150
commit
58d8cb4ad5
@ -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) ==# '')
|
||||||
|
Loading…
Reference in New Issue
Block a user