go.vim 526 B

123456789101112131415161718192021222324252627282930
  1. " Vim compiler file
  2. " Compiler: Go
  3. " Maintainer: David Barnett (https://github.com/google/vim-ft-go)
  4. " Last Change: 2014 Aug 16
  5. if exists('current_compiler')
  6. finish
  7. endif
  8. let current_compiler = 'go'
  9. if exists(':CompilerSet') != 2
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:save_cpo = &cpo
  13. set cpo-=C
  14. CompilerSet makeprg=go\ build
  15. CompilerSet errorformat=
  16. \%-G#\ %.%#,
  17. \%A%f:%l:%c:\ %m,
  18. \%A%f:%l:\ %m,
  19. \%C%*\\s%m,
  20. \%-G%.%#
  21. let &cpo = s:save_cpo
  22. unlet s:save_cpo
  23. " vim: sw=2 sts=2 et