cs.vim 669 B

123456789101112131415161718192021222324252627
  1. " Vim compiler file
  2. " Compiler: Microsoft Visual Studio C#
  3. " Maintainer: Yichao Zhou (broken.zhou@gmail.com)
  4. " Previous Maintainer: Joseph H. Yao (hyao@sina.com)
  5. " Last Change: Jul 22, 2019
  6. if exists("current_compiler")
  7. finish
  8. endif
  9. let current_compiler = "cs"
  10. let s:keepcpo= &cpo
  11. set cpo&vim
  12. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  13. command -nargs=* CompilerSet setlocal <args>
  14. endif
  15. CompilerSet errorformat&
  16. CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
  17. \%trror%*[^:]:\ %m,
  18. \%tarning%*[^:]:\ %m
  19. CompilerSet makeprg=csc\ %:S
  20. let &cpo = s:keepcpo
  21. unlet s:keepcpo