aboutsummaryrefslogtreecommitdiffstats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--compiler/beancount.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/compiler/beancount.vim b/compiler/beancount.vim
new file mode 100644
index 0000000..5bcaa15
--- /dev/null
+++ b/compiler/beancount.vim
@@ -0,0 +1,19 @@
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "beancount"
+
+if exists(":CompilerSet") != 2 " older Vim always used :setlocal
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+let s:cpo_save = &cpo
+set cpo-=C
+
+CompilerSet makeprg=bean-check\ %
+CompilerSet errorformat=%-G " Skip blank lines
+CompilerSet errorformat+=%f:%l:\ %m " File:line: message
+CompilerSet errorformat+=%-G\ %.%# " Skip indented lines.
+
+let &cpo = s:cpo_save
+unlet s:cpo_save