From 58d8cb4ad5374c9c977ac74def12e2bf9ffd83f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sat, 10 Sep 2016 23:14:25 +0200 Subject: [PATCH] Fix #540: Support comments in bib files --- ftplugin/bib.vim | 3 +++ 1 file changed, 3 insertions(+) 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) ==# '')