coffeescript的vim插件

coffeescript在vim下也非常好用,安装vim-coffee-script即可:https://github.com/kchmck/vim-coffee-script

Requirements

  • vim 7.4 or later
  • coffee 1.2.0 or later

Install using Pathogen

This project uses rolling releases based on git commits, so pathogen is a natural fit for it. If you're already using pathogen, you can skip to step 4.

  1. Install pathogen.vim into ~/.vim/autoload/ (see pathogen's readme for more information.)
  1. Enable pathogen in your vimrc. Here's a bare-minimum vimrc that enables all the features of vim-coffee-script:

    call pathogen#infect()
    syntax enable
    filetype plugin indent on

    If you already have a vimrc built up, just make sure it contains these calls, in this order.

  2. Create the directory ~/.vim/bundle/:

     mkdir ~/.vim/bundle
    
  3. Clone the vim-coffee-script repo into ~/.vim/bundle/:

     git clone https://github.com/kchmck/vim-coffee-script.git ~/.vim/bundle/vim-coffee-script/
    

Updating takes two steps:

  1. Change into ~/.vim/bundle/vim-coffee-script/:

     cd ~/.vim/bundle/vim-coffee-script
    
  2. Pull in the latest changes:

     git pull
posted @ 2017-12-22 22:44  立体风  阅读(122)  评论(0)    收藏  举报