fortran_cv.vim 749 B

12345678910111213141516171819202122232425262728293031
  1. " Vim compiler file
  2. " Compiler: Compaq Visual Fortran
  3. " Maintainer: Joh.-G. Simon (johann-guenter.simon@linde-le.com)
  4. " Last Change: 11/05/2002
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "fortran_cv"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cposet = &cpoptions
  13. set cpoptions-=C
  14. " A workable errorformat for Compaq Visual Fortran
  15. CompilerSet errorformat=
  16. \%E%f(%l)\ :\ Error:%m,
  17. \%W%f(%l)\ :\ Warning:%m,
  18. \%-Z%p%^%.%#,
  19. \%-G%.%#,
  20. " Compiler call
  21. CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ %:S
  22. " Visual fortran defaults to printing output on stderr
  23. " Adjust option shellpipe accordingly
  24. let &cpoptions = s:cposet
  25. unlet s:cposet