github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/misc/vim/compiler/go.vim (about) 1 " Copyright 2013 The Go Authors. All rights reserved. 2 " Use of this source code is governed by a BSD-style 3 " license that can be found in the LICENSE file. 4 " 5 " compiler/go.vim: Vim compiler file for Go. 6 7 if exists("current_compiler") 8 finish 9 endif 10 let current_compiler = "go" 11 12 if exists(":CompilerSet") != 2 13 command -nargs=* CompilerSet setlocal <args> 14 endif 15 16 let s:save_cpo = &cpo 17 set cpo-=C 18 19 CompilerSet makeprg=go\ build 20 CompilerSet errorformat= 21 \%-G#\ %.%#, 22 \%A%f:%l:%c:\ %m, 23 \%A%f:%l:\ %m, 24 \%C%*\\s%m, 25 \%-G%.%# 26 27 let &cpo = s:save_cpo 28 unlet s:save_cpo 29 30 " vim:ts=4:sw=4:et