Permalink
Browse files

makeprg and errorformat

  • Loading branch information...
1 parent 84f6dd2 commit 48f886e2f9d4d8143573ae69711a4f95f0c99f2e @bruno- bruno- committed Nov 14, 2014
Showing with 24 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +22 −0 compiler/tmux.vim
  3. +1 −1 ftdetect/tmux.vim
View
@@ -1,6 +1,7 @@
# Changelog
### master
+- makeprg and errorformat
### v2.0.0, 2014-11-14
- add 'comment' and 'commentstring'
View
@@ -0,0 +1,22 @@
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "tmux"
+
+if exists(":CompilerSet") != 2
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+let s:cpo_save = &cpo
+set cpo-=C
+
+CompilerSet makeprg=tmux\ source-file\ %
+
+CompilerSet errorformat=
+ \%f:%l:%m,
+ \%+Gunknown\ command:\ %s
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
+" vim: nowrap sw=2 sts=2 ts=8:
View
@@ -1 +1 @@
-autocmd BufNewFile,BufRead {.,}tmux*.conf set ft=tmux
+autocmd BufNewFile,BufRead {.,}tmux*.conf set ft=tmux | compiler tmux

0 comments on commit 48f886e

Please sign in to comment.