hp_acc.vim 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. " Vim compiler file
  2. " Compiler: HP aCC
  3. " Maintainer: Matthias Ulrich <matthias-ulrich@web.de>
  4. " URL: http://www.subhome.de/vim/hp_acc.vim
  5. " Last Change: 2012 Apr 30
  6. "
  7. " aCC --version says: "HP ANSI C++ B3910B A.03.13"
  8. " This compiler has been tested on:
  9. " hp-ux 10.20, hp-ux 11.0 and hp-ux 11.11 (64bit)
  10. "
  11. " Tim Brown's aCC is: "HP ANSI C++ B3910B A.03.33"
  12. " and it also works fine...
  13. "
  14. " Now suggestions by aCC are supported (compile flag aCC +w).
  15. " Thanks to Tim Brown again!!
  16. "
  17. if exists("current_compiler")
  18. finish
  19. endif
  20. let current_compiler = "hp_acc"
  21. let s:keepcpo= &cpo
  22. set cpo&vim
  23. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  24. command -nargs=* CompilerSet setlocal <args>
  25. endif
  26. CompilerSet errorformat=%A%trror\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m,
  27. \%A%tarning\ (suggestion)\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m\ %#,
  28. \%A%tarning\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m\ %#,
  29. \%Z\ \ \ \ %p^%.%#,
  30. \%-C%.%#
  31. let &cpo = s:keepcpo
  32. unlet s:keepcpo
  33. " vim:ts=8:sw=4:cindent