diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:26:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 16:26:29 +0200 |
commit | 591d4d2517b86f6c4b88bf165fb9c01dcb861727 (patch) | |
tree | 39f8cd5e5aa3bae95ceb78f153520f41a201fefb /compiler | |
parent | 9fa15ece8b6a08fe035669708db50ba76c93b2aa (diff) | |
download | vim-polyglot-591d4d2517b86f6c4b88bf165fb9c01dcb861727.tar.gz vim-polyglot-591d4d2517b86f6c4b88bf165fb9c01dcb861727.zip |
Add go language support
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/go.vim | 30 |
1 files changed, 30 insertions, 0 deletions
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 |