blob: 9c1a6f31191f67128d782ce971160f34ea1210f8 [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
Yinzuo Jiangcec44ea2024-04-06 01:59:39 +08005" 2024 Apr 05 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
Bram Moolenaarfb539272014-08-22 19:21:47 +020012let s:save_cpo = &cpo
13set cpo-=C
14
15CompilerSet makeprg=go\ build
16CompilerSet errorformat=
17 \%-G#\ %.%#,
18 \%A%f:%l:%c:\ %m,
19 \%A%f:%l:\ %m,
20 \%C%*\\s%m,
21 \%-G%.%#
22
23let &cpo = s:save_cpo
24unlet s:save_cpo
25
26" vim: sw=2 sts=2 et