coffee vim 编译环境

https://github.com/kchmck/vim-coffee-script

根据github配置coffee-vim

Install using Vundle

  1. Install Vundle into ~/.vim/bundle/.

  2. Configure your vimrc for Vundle. Here's a bare-minimum vimrc that enables all the features of vim-coffee-script:

    set nocompatible
    filetype off
    
    set rtp+=~/.vim/bundle/vundle/
    call vundle#rc()
    
    Bundle 'kchmck/vim-coffee-script'
    
    syntax enable
    filetype plugin indent on
    

    If you're adding Vundle to a built-up vimrc, just make sure all these calls are in there and that they occur in this order.

  3. Open vim and run :BundleInstall.

To update, open vim and run :BundleInstall! (notice the bang!)

编译:

:compiler coffee

Configure Syntax Highlighting

vim 设置

set ts=2
set expandtab "将tab换成2个空格
%retab!
posted @ 2014-07-09 22:12  purejade  阅读(118)  评论(0)    收藏  举报