Skip to content

Instantly share code, notes, and snippets.

@sgur
Created November 13, 2010 10:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgur/675234 to your computer and use it in GitHub Desktop.
Save sgur/675234 to your computer and use it in GitHub Desktop.
quickrun.vim で C# のコマンドラインコンパイラを利用する設定。set shellslashでも動作する(と思う)。vimprocだとうまく動かず。
let g:quickrun_config = { }
let g:quickrun_config['cs'] = {
\ 'command' : 'csc',
\ 'runmode' : 'simple',
\ 'exec' : ['%c /nologo %s:gs?/?\\? > /dev/null', '"%S:p:r:gs?/?\\?.exe" %a', ':call delete("%S:p:r.exe")'],
\ 'tempfile' : '{tempname()}.cs',
\ }
@sgur
Copy link
Author

sgur commented Nov 13, 2010

よく考えたら runmode = simple にするの filetype が cs のときだけでいいな
blog書いた。 http://sgur.posterous.com/quickrunvim-c

@Shougo
Copy link

Shougo commented Nov 14, 2010

vimprocだとうまく動かず。

うーん。> nulだからかな。>/dev/nullを使ってください。

@sgur
Copy link
Author

sgur commented Nov 14, 2010

runmode:simple でも set shellslash の場合コマンドラインにパス区切り文字列('/')が出てくるとダメでした。
これは quickrun いじらないといけないかも…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment