diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-26 03:34:22 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-26 03:34:22 +0100 |
commit | a26bebbeb94207698d20f43485098ead64bb6c67 (patch) | |
tree | ac829c223694513dfc9b90c592001d2ea31d07d4 /compiler | |
parent | edd5ee63e66d9ef166034d9ac5bed132f501ecb9 (diff) | |
download | vim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.tar.gz vim-polyglot-a26bebbeb94207698d20f43485098ead64bb6c67.zip |
Update
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/coffee.vim | 4 | ||||
-rw-r--r-- | compiler/go.vim | 30 |
2 files changed, 32 insertions, 2 deletions
diff --git a/compiler/coffee.vim b/compiler/coffee.vim index a70fa64c..9a91d354 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -75,8 +75,8 @@ augroup CoffeeUpdateMakePrg " Set autocmd locally if compiler was set locally. if &l:makeprg =~ s:pat - autocmd BufFilePost,BufWritePost <buffer> call s:UpdateMakePrg() + autocmd BufWritePre,BufFilePost <buffer> call s:UpdateMakePrg() else - autocmd BufFilePost,BufWritePost call s:UpdateMakePrg() + autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() endif augroup END diff --git a/compiler/go.vim b/compiler/go.vim new file mode 100644 index 00000000..2c8cce49 --- /dev/null +++ b/compiler/go.vim @@ -0,0 +1,30 @@ +" Copyright 2013 The Go Authors. All rights reserved. +" Use of this source code is governed by a BSD-style +" license that can be found in the LICENSE file. +" +" compiler/go.vim: Vim compiler file for Go. + +if exists("current_compiler") + finish +endif +let current_compiler = "go" + +if exists(":CompilerSet") != 2 + command -nargs=* CompilerSet setlocal <args> +endif + +let s:save_cpo = &cpo +set cpo-=C + +CompilerSet makeprg=go\ build +CompilerSet errorformat= + \%-G#\ %.%#, + \%A%f:%l:%c:\ %m, + \%A%f:%l:\ %m, + \%C%*\\s%m, + \%-G%.%# + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim:ts=4:sw=4:et |