Skip to content

Instantly share code, notes, and snippets.

@becyn
Last active December 22, 2015 12:39
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 becyn/6473831 to your computer and use it in GitHub Desktop.
Save becyn/6473831 to your computer and use it in GitHub Desktop.
.vimrcの一部(nodeを使うにあたって追加したシンタックスハイライトたち)
syntax enable
let g:quickrun_config={}
"JS
autocmd BufNewFile,BufRead *.js set tabstop=2 shiftwidth=2 expandtab
"JSON
autocmd BufNewFile,BufRead *.json set filetype=json
autocmd BufNewFile,BufRead *.json set tabstop=2 shiftwidth=2 expandtab
"Jade
autocmd BufNewFile,BufRead *.jade setf jade
autocmd BufNewFile,BufRead *.jade set tabstop=2 shiftwidth=2 expandtab
let g:quickrun_config['jade']={'command': 'jade', 'cmdopt': '-P', 'exec': ['%c &o < %s']}
"stylus
autocmd BufNewFile,BufRead *.styl setf stylus
autocmd BufNewFile,BufRead *.styl set tabstop=2 shiftwidth=2 expandtab
let g:quickrun_config['stylus']={'command': 'stylus', 'exec': ['%c < %s']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment