前言:如果不使用vundle的话,进行插件的安装,配置和管理相对会麻烦,曾经没使用vundle的时候我经常遇到无法安装一些vim插件。但使用vundle后你只要在文件中添加一行你的插件名再安装就OK了。先简单说一下vundle的使用,相信你会爱上它。原贴:http://www.jianshu.com/p/mHUR4e
步骤:
1.先安装vim,安装vim方法见vim 配置篇
2.创建文件夹~/.vim和文件~/.vimrc
进入你的home目录创建.vim文件夹和 .vimrc文件
3.安装vundle

$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

git命令在centos下可以

yum install git

4.编辑如下内容到.vimrc文件

set nocompatible " be iMproved
filetype off " required! set rtp+=~/.vim/bundle/vundle/
call vundle#rc() " let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle' " My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" git repos on your local machine (ie. when working on your own plugin)
Bundle 'file:///Users/gmarik/path/to/plugin'
" ... filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..

下面针对上面的文件做一些解释

set nocompatible " be iMproved
filetype off " required! set rtp+=~/.vim/bundle/vundle/
call vundle#rc() " let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle' " My Bundles here:
#以后你想安装什么插件可以写在下面
"
" original repos on github
#如果你的插件来自github,写在下方,只要作者名/项目名就行了
Bundle 'tpope/vim-fugitive' #如这里就安装了vim-fugitive这个插件
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
#如果插件来自 vim-scripts,你直接写插件名就行了
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
#如使用自己的git库的插件,像下面这样做
Bundle 'git://git.wincent.com/command-t.git'
" git repos on your local machine (ie. when working on your own plugin)
Bundle 'file:///Users/gmarik/path/to/plugin'
" ... filetype plugin indent on " required!
#下面是 vundle的一些命令代会会用到
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
#这里可以写一些你自己的配置

5.安装你的插件
(1)保存退出当前的vim
(2)重新打开vim,输入命令:BundleInstall,然后就开始安装你的插件了。
6.如何移除插件
(1)编辑.vimrc文件移除的你要移除的插件行
(2)保存退出当前的vim
(3)重新打开vim,输入命令:BundleClean。
很方便的步骤,亲测可用,再也不用担心管理vim插件了。

最新文章

  1. Ubuntu Server 12.04下部署glusterfs
  2. 博弈SG
  3. 自定义可视化调试工具(Microsoft.VisualStudio.DebuggerVisualizers)vs.net开发工具
  4. 关于CCSprite改变box2d刚体位置以及角度。
  5. Linux ed
  6. mysql的SQL_CALC_FOUND_ROWS 使用
  7. .net mvc RazorEngine 字符串razor参数替换
  8. c#多线程,进度条,实时给前台发送数据
  9. Linux下Nginx配置阿里云 SSL证书实现HTTPS访问
  10. JVM、redis缓存适用场景
  11. 并发之AQS
  12. Git 强制回退到某个历史版本再推送到远程
  13. Delphi基础必记-快捷键
  14. Understanding Flash: Blocks, Pages and Program / Erases
  15. 从tcp的角度看,打开一个网页到底发生了什么
  16. Lua协程-测试3
  17. RNN LSTM 介绍
  18. bzoj 2763: [JLOI2011]飞行路线 -- 分层图最短路
  19. 【爬虫】python 多线程知识
  20. ActiveMQ 实现消息接收发送

热门文章

  1. Matlab M文件变量检测与传递
  2. C# vb .net实现不透明度调整特效滤镜
  3. wbSocket
  4. Java 日期时间与unix时间戳之间转换
  5. vue+vant-UI框架写的购物车的复选框全选和反选
  6. springboot实现读写分离(基于Mybatis,mysql)
  7. js 数组 去重 算法(转载)
  8. 安装node.js->npm->vue
  9. Json序列化 总结
  10. Maven的下载,配置环境,导入编译器,使用说明一条龙