summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-22 14:48:46 -0700
committerJohn Wiegley <johnw@newartisans.com>2012-04-22 14:48:46 -0700
commit04574bc5117fe951947f483cdc5f2c37f15b9a43 (patch)
tree407473768879c56957d2688d158cd680211c36e3 /contrib/vim/ftplugin
parentee641f353c9a2216533800464d26afe86f1b028e (diff)
parent76ab0acaaa30b61b8482c4854f7f54eb92d0b6e8 (diff)
downloadfork-ledger-04574bc5117fe951947f483cdc5f2c37f15b9a43.tar.gz
fork-ledger-04574bc5117fe951947f483cdc5f2c37f15b9a43.tar.bz2
fork-ledger-04574bc5117fe951947f483cdc5f2c37f15b9a43.zip
Merge pull request #64 from kljohann/vim
Vim: Update syntax file, create indentation file, set commentstring (Bugs 528, 529)
Diffstat (limited to 'contrib/vim/ftplugin')
-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