blob: eef897f4a262b78e6f0b60180ae983b5af5fc918 [file] [log] [blame]
Bram Moolenaarfb539272014-08-22 19:21:47 +02001" Vim compiler file
2" Compiler: Go
3" Maintainer: David Barnett (https://github.com/google/vim-ft-go)
4" Last Change: 2014 Aug 16
Doug Kearns408281e2024-04-04 22:00:58 +02005" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
Bram Moolenaarfb539272014-08-22 19:21:47 +02006
7if exists('current_compiler')
8 finish
9endif
10let current_compiler = 'go'
11
12if exists(':CompilerSet') != 2
13 command -nargs=* CompilerSet setlocal <args>
14endif
15
16let s:save_cpo = &cpo
17set cpo-=C
18
19CompilerSet makeprg=go\ build
20CompilerSet errorformat=
21 \%-G#\ %.%#,
22 \%A%f:%l:%c:\ %m,
23 \%A%f:%l:\ %m,
24 \%C%*\\s%m,
25 \%-G%.%#
26
27let &cpo = s:save_cpo
28unlet s:save_cpo
29
30" vim: sw=2 sts=2 et