Skip to content

Instantly share code, notes, and snippets.

@slimane
Last active January 1, 2016 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slimane/8125200 to your computer and use it in GitHub Desktop.
Save slimane/8125200 to your computer and use it in GitHub Desktop.
haxe用のquickrun設定
let g:quickrun_config['haxe'] = {
\ 'command' : 'haxe'
\ , 'args' : '-x'
\ , 'cmdopt' : '-main ' . "%{HaxeClssName(expand(\"%S:t:r\"))}"
\ , 'exec' : "%c %o %a %s:p"
\ }
function! HaxeClssName(word)
" :rで拡張子が削除されてくれないので関数で対処。後で原因調べて直す
return substitute(a:word, '^\v.*\ze\.hx', '\u&', '')
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment