diff options
author | Johann Klähn <kljohann@gmail.com> | 2010-02-21 19:48:17 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2010-02-21 19:48:17 +0100 |
commit | eafc23bd4e40f00589cd1cd1b0d0cc70344accb7 (patch) | |
tree | 0b2cce9367c02ed22db6511a433bae4ebc0ae6be /contrib/vim/compiler | |
parent | 50889bf2b8b670e6aa4fd4a6d547cdc53d45f198 (diff) | |
download | fork-ledger-eafc23bd4e40f00589cd1cd1b0d0cc70344accb7.tar.gz fork-ledger-eafc23bd4e40f00589cd1cd1b0d0cc70344accb7.tar.bz2 fork-ledger-eafc23bd4e40f00589cd1cd1b0d0cc70344accb7.zip |
vim. Add quickfix support
Diffstat (limited to 'contrib/vim/compiler')
-rw-r--r-- | contrib/vim/compiler/ledger.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/vim/compiler/ledger.vim b/contrib/vim/compiler/ledger.vim new file mode 100644 index 00000000..e8ea5ed0 --- /dev/null +++ b/contrib/vim/compiler/ledger.vim @@ -0,0 +1,22 @@ +" Vim Compiler File +" Compiler: ledger +" by Johann Klähn; Use according to the terms of the GPL>=2. +" vim:ts=2:sw=2:sts=2:foldmethod=marker + +if exists("current_compiler") + finish +endif +let current_compiler = "ledger" + +if exists(":CompilerSet") != 2 + command -nargs=* CompilerSet setlocal <args> +endif + +" %-G throws away blank lines, everything else is assumed to be part of a +" multi-line error message. +CompilerSet errorformat=%-G,%EWhile\ parsing\ file\ \"%f\"\\,\ line\ %l:%.%#,%ZError:\ %m,%C%.%# + +" unfortunately there is no 'check file' command, +" so we will just use a query that returns no results. ever. +CompilerSet makeprg=ledger\ -f\ %\ reg\ not\ '.*'\ \>\ /dev/null + |