fbc.vim 636 B

12345678910111213141516171819202122232425262728
  1. " Vim compiler file
  2. " Compiler: FreeBASIC Compiler
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2015 Jan 10
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "fbc"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. CompilerSet makeprg=fbc
  15. CompilerSet errorformat=%-G%.%#Too\ many\ errors\\,\ exiting,
  16. \%f(%l)\ %tarning\ %n(%\\d%\\+):\ %m,
  17. \%E%f(%l)\ error\ %n:\ %m,
  18. \%-Z%p^,
  19. \%-C%.%#,
  20. \%-G%.%#
  21. let &cpo = s:cpo_save
  22. unlet s:cpo_save