Coding in Cocoa

the way
随笔 - 6, 文章 - 1, 评论 - 3, 引用 - 0
数据加载中……

配置方便管理vim插件的的vimrc


配置方便管理vim插件的的vimrc
使用vundle来管理vim的插件。vundle把每个插件作为单独一个目录放在~/.vim/bundle下面,每个插件所有的配置都在这一个目录,这样就方便vim管理每个插件,很容易的对插件增加、修改、删除。

使用vundle配置vim插件的方法:

1.先安装vundle插件到vim中。
vundle的作者把代码放到了http://github.com网站,可以使用git把vundle插件从代码仓库中取下来。

git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git


2.配置要安装的插件到vim
在.vimrc中放入下面的代码
set rtp+=~/.vim/vundle.git/
call vundle#rc()

" Bundles:
Bundle "L9"
Bundle 
"git://git.wincent.com/command-t.git"
" 

" NOTE: if some plugins fail to work, put the config *between* lines:
"
 filetype off
"
 "Bundles here
" filetype plugin indent on 


3.安装插件
启动vim,执行 :BundleInstall
这样vundle会从网上下载响应的插件到bundle目录,安装完插件后返回vim。

完毕。


posted on 2011-03-20 17:39 shf 阅读(849) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理