diff options
author | Johann Klähn <kljohann@gmail.com> | 2009-06-17 12:40:50 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2009-06-17 12:40:50 +0200 |
commit | 9701548f7e634f9a19295e34f624264343b78f0b (patch) | |
tree | d54b8ba29177a0b33ff2c5101105f1601bf0d5a9 /contrib/vim/ftplugin/ledger.vim | |
parent | b96df34d75e9c0afde5b1706c00a6c8a58b2fff4 (diff) | |
download | fork-ledger-9701548f7e634f9a19295e34f624264343b78f0b.tar.gz fork-ledger-9701548f7e634f9a19295e34f624264343b78f0b.tar.bz2 fork-ledger-9701548f7e634f9a19295e34f624264343b78f0b.zip |
vim: highlight account names
This helps to avoid confusion when an account is not
seperated from the amount by two spaces or a tab but only by one space.
In these cases the amount will now be highlighted
as if it belongs to the account name.
Thanks to user 'plaindocs' for reporting this.
Diffstat (limited to 'contrib/vim/ftplugin/ledger.vim')
-rw-r--r-- | contrib/vim/ftplugin/ledger.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim index 4e8bfcf1..cef0d81e 100644 --- a/contrib/vim/ftplugin/ledger.vim +++ b/contrib/vim/ftplugin/ledger.vim @@ -85,7 +85,7 @@ function! s:multibyte_strlen(text) "{{{2 return strlen(substitute(a:text, ".", "x", "g")) endfunction "}}} -function s:get_columns(win) "{{{2 +function! s:get_columns(win) "{{{2 " As long as vim doesn't provide a command natively, " we have to compute the available columns. " see :help todo.txt -> /Add argument to winwidth()/ |