summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin/ledger.vim
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2012-04-22 15:41:57 +0200
committerJohann Klähn <kljohann@gmail.com>2012-04-22 15:41:57 +0200
commitdc0264aca176860f66b680d6e1f85abd8372dcb9 (patch)
tree80d52db1c61ccfc323e4113b9cb74d874f944ed6 /contrib/vim/ftplugin/ledger.vim
parent7cc550fc22357e2ded194d3e65287c6b3317f5ae (diff)
downloadfork-ledger-dc0264aca176860f66b680d6e1f85abd8372dcb9.tar.gz
fork-ledger-dc0264aca176860f66b680d6e1f85abd8372dcb9.tar.bz2
fork-ledger-dc0264aca176860f66b680d6e1f85abd8372dcb9.zip
vim. set commentstring
Fixes bug 528.
Diffstat (limited to 'contrib/vim/ftplugin/ledger.vim')
-rw-r--r--contrib/vim/ftplugin/ledger.vim3
1 files changed, 2 insertions, 1 deletions
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