安装vbundle

来源:互联网 发布:mysql设置初始密码 编辑:程序博客网 时间:2024/06/13 17:34

安装vim 插件vbundle

vim 插件管理插件 类似centos 里的 yum 包管理工具 。

  • 安装 git 工具
yum install git
  • 安装vunble
  git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

修改.vimrc

set nocompatible " 设置vim为不兼容vi模式  filetype off " required  set rtp+=~/.vim/bundle/vundle/"如果在windows下使用,设置为  "set rtp+=$HOME/.vim/bundle/vundle/  call vundle#rc()"let Vundle manage Vundle  Bundle 'gmarik/vundle'"Bundles托管插件示例  "代码在github上,使用github帐号/项目名,例如:  "Bundle 'tpope/vim-fugitive'  "代码在vimscript上,使用插件名称,插件名字可以在  "http://vim-scripts.org/vim/scripts.html页面中查找,例如:  "Bundle 'vimwiki'  "非github的插件,使用其git地址,例如:  "Bundle 'git://git.wincent.com/command-t.git'  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(!) - 删除插件首先要在.vimrc中注释掉插件相应的行,再运行该命令  "  "see :h vundle for more details or wiki for FAQ  "NOTE: comments after Bundle command are not allowed..  

BundleSearch

0 0