harvey@harvey:~/.vim$ mkdir -p ~/.vim/autoload ~/.vim/bundle #创建安装vim插件的文件夹bundle和antoload harvey@harvey:~/.vim$ ls ~/.vim #查看结果 autoload bundle harvey@harvey:~/.vim$ git clone https://github.com/tpope/vim-pathogen.git #从git上同步下来pathogen项目 Cloning into ‘vim-pathogen‘... remote: Reusing existing pack: 501, done. remote: Counting objects: 4, done. remote: Compressing objects: 100% (3/3), done. remote: Total 505 (delta 0), reused 0 (delta 0) Receiving objects: 100% (505/505), 85.89 KiB | 35.00 KiB/s, done. Resolving deltas: 100% (146/146), done. Checking connectivity... done harvey@harvey:~/.vim$ ls autoload bundle vim-pathogen harvey@harvey:~/.vim$ tree vim-pathogen #查看文件结构如下 vim-pathogen |-- CONTRIBUTING.markdown |-- README.markdown `-- autoload `-- pathogen.vim 1 directory, 3 files harvey@harvey:~/.vim$ mv vim-pathogen/autoload/pathogen.vim autoload/ #把pathogen.vim移动到autoload文件夹下
cd ~/.vim/bundle git clone https://github.com/scrooloose/nerdtree.git
cd ~/.vim/bundle git clone https://github.com/moll/vim-node.git ~/.vim/bundle/node
配置文件:
Vim配置Node.js开发工具,布布扣,bubuko.com
原文:http://www.cnblogs.com/zhanghaiyublog/p/3649959.html