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