go.vim 521 B

123456789101112131415161718192021222324252627
  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. " 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
  6. if exists('current_compiler')
  7. finish
  8. endif
  9. let current_compiler = 'go'
  10. let s:save_cpo = &cpo
  11. set cpo-=C
  12. CompilerSet makeprg=go\ build
  13. CompilerSet errorformat=
  14. \%-G#\ %.%#,
  15. \%A%f:%l:%c:\ %m,
  16. \%A%f:%l:\ %m,
  17. \%C%*\\s%m,
  18. \%-G%.%#
  19. let &cpo = s:save_cpo
  20. unlet s:save_cpo
  21. " vim: sw=2 sts=2 et