vim: complete account names with compl-keyword

Basic support for keyword completion (<C-X> <C-N>)
Will only work on account names with no spaces
This commit is contained in:
Johann Klähn 2009-06-17 21:48:11 +02:00
parent 9701548f7e
commit 7654ecc102

View file

@ -12,7 +12,7 @@ let b:did_ftplugin = 1
let b:undo_ftplugin = "setlocal ".
\ "foldmethod< foldtext< ".
\ "include< comments< "
\ "include< comments< iskeyword< "
" don't fill fold lines --> cleaner look
setl fillchars="fold: "
@ -20,6 +20,10 @@ setl foldtext=LedgerFoldText()
setl foldmethod=syntax
setl include=^!include
setl comments=b:;
" so you can use C-X C-N completion on accounts
" FIXME: Does not work with something like:
" Assets:Accountname with Spaces
setl iskeyword+=:
" You can set a maximal number of columns the fold text (excluding amount)
" will use by overriding g:ledger_maxwidth in your .vimrc.