From dc0264aca176860f66b680d6e1f85abd8372dcb9 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Sun, 22 Apr 2012 15:41:57 +0200 Subject: vim. set commentstring Fixes bug 528. --- contrib/vim/ftplugin/ledger.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/vim/ftplugin/ledger.vim') diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim index 63de88b5..0067f9f8 100644 --- a/contrib/vim/ftplugin/ledger.vim +++ b/contrib/vim/ftplugin/ledger.vim @@ -11,7 +11,7 @@ let b:did_ftplugin = 1 let b:undo_ftplugin = "setlocal ". \ "foldmethod< foldtext< ". - \ "include< comments< omnifunc< formatprg<" + \ "include< comments< commentstring< omnifunc< formatprg<" " don't fill fold lines --> cleaner look setl fillchars="fold: " @@ -19,6 +19,7 @@ setl foldtext=LedgerFoldText() setl foldmethod=syntax setl include=^!include setl comments=b:; +setl commentstring=;%s setl omnifunc=LedgerComplete " set location of ledger binary for checking and auto-formatting -- cgit v1.2.3