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:
parent
9701548f7e
commit
7654ecc102
1 changed files with 5 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue