38
36

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vim-coffee-scriptを使うときの.vimrc

Posted at

#vim-coffee-scriptを使う際の.vimrc設定

##必要条件

  • vim 7.4 以降
  • coffeescript 1.2.0 以降

##インストール方法(NeoBundle)

  1. 下記を.vimrcに追記する

Bundle 'kchmck/vim-coffee-script'
  1. vim内コマンドモードで下記コマンドを実行する

:BundleInstall

##.vimrc


Bundle 'kchmck/vim-coffee-script'

" vimにcoffeeファイルタイプを認識させる

au BufRead,BufNewFile,BufReadPre *.coffee   set filetype=coffee
" インデント設定
autocmd FileType coffee    setlocal sw=2 sts=2 ts=2 et
" オートコンパイル
  "保存と同時にコンパイルする
autocmd BufWritePost *.coffee silent make! 
  "エラーがあったら別ウィンドウで表示
autocmd QuickFixCmdPost * nested cwindow | redraw! 
" Ctrl-cで右ウィンドウにコンパイル結果を一時表示する
nnoremap <silent> <C-C> :CoffeeCompile vert <CR><C-w>h

##参考文書

38
36
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
36

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?