Skip to content

Instantly share code, notes, and snippets.

@h14i
Created October 6, 2013 22:51
Show Gist options
  • Save h14i/6860170 to your computer and use it in GitHub Desktop.
Save h14i/6860170 to your computer and use it in GitHub Desktop.
quickrun.vim with tsc 0.9.1.1.
" Fedora 19, npm 1.3.11, tsc 0.9.1.1
let g:quickrun_config['typescript/base'] = {
\ 'cmdopt': '',
\ 'exec': ['tsc %o %s --out %s:p:r.js', '%c %s:p:r.js', 'rm -f %s:p:r.js'],
\ 'temp': '%{tempname()}.ts',
\ }
let g:quickrun_config['typescript/nodejs'] = {
\ 'type': 'typescript/base',
\ 'command': 'node',
\ }
let g:quickrun_config['typescript/phantomjs'] = {
\ 'type': 'typescript/base',
\ 'command': 'phantomjs',
\ }
let g:quickrun_config['typescript/v8'] = {
\ 'type': 'typescript/base',
\ 'command': 'd8',
\ }
let g:quickrun_config['typescript/rhino'] = {
\ 'type': 'typescript/base',
\ 'command': 'jrunscript',
\ }
@h14i
Copy link
Author

h14i commented Oct 6, 2013

中間ファイルの .js はいらないかも知れない。

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