打造最强大的vim IDE(一) —— vim管理插件的插件

关于vim的强大,这篇就不多说了,上一篇转载的文章已经解释的很清楚了。vim的插件管理也有很多,上文提到的Pathogen就是很不错的,今天给大家说的是Vundle。

             学会Vundle只需两部。

             第一,git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

第二,.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'
" ...
 
filetype plugin indent on     " required!
"
" Brief help  -- 此处后面都是vundle的使用命令
" :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..

至此,我们的前期准备已经全部完成。打开vim,执行 :BundleInstall即可将配置文件中添加的bundler插件进行安装。

没听明白?哈,再举个实际的例子,如下:

结合vundle的使用,安装power-line插件~ 并进行相关配置.

  如上所示,我添加了vundle插件的git源,来吧,懒人福利(Bundle 'https://github.com/Lokaltog/powerline.git')。退出保存一下,再打开vim,:BundleInstall,即可安装。

然后再进行简单配置即可.

最后我们有了华丽丽的状态栏了


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值