summaryrefslogtreecommitdiffstats
path: root/runtime/compiler
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-22 19:21:47 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-22 19:21:47 +0200
commitfb539273c95f95e18e9542c2de3318b1b1e73db6 (patch)
tree9b435b3ca96881d563c9416fc876939d0d3f92b6 /runtime/compiler
parentd2e8087b532e676cc513a2b385deaf1bf7afbf94 (diff)
Updated runtime files.
Diffstat (limited to 'runtime/compiler')
-rw-r--r--runtime/compiler/go.vim29
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/compiler/go.vim b/runtime/compiler/go.vim
new file mode 100644
index 0000000000..cf638f23d6
--- /dev/null
+++ b/runtime/compiler/go.vim
@@ -0,0 +1,29 @@
+" Vim compiler file
+" Compiler: Go
+" Maintainer: David Barnett (https://github.com/google/vim-ft-go)
+" Last Change: 2014 Aug 16
+
+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: sw=2 sts=2 et