vim插件管理器vundle

系统 1308 0

1.创建bundle路径。

mkdir ~/.vim/bundle

 

2.clone vundle项目。

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

(第一次clone没创建vundle路径时失败,难道还要创建vundle路径?)

 

3.在 .vimrc或/etc/vim/vimrc 里添加下面内容。

注:如果没有.vimrc则在/etc/vim/vimrc里添加。

    
      set nocompatible

filetype off                              " 先关闭文件类型

set rtp+=~/.vim/bundle/vundle             " 将vundle路径添加到插件vim路径

call vundle#rc()                          " 执行Vundle初始化

Bundle 'gmarik/vundle'                    " 将Vundle加入到bundle


    
  
    
      filetype indent plugin on                 " 安装完后打开文件类型
    
  
     
  
    4.添加更多插件。
  
    
      如需加上插件则在Bundle 'gmarik/vundle'后加上相应的Bundle,如果是github则可以只输入后面的相对路径,如果是其他git则需输入全部url,下面给出一个完整的例子:
    
  
    set nocompatible

filetype off

set rtp+=~/.vim/bundle/vundle

call vundle#rc()

Bundle 'gmarik/vundle'

"Bundle "MarcWeber/vim-addon-mw-utils"

"Bundle "tomtom/tlib_vim"

"Bundle "honza/snipmate-snippets"

"Bundle "garbas/vim-snipmate"

Bundle "Shougo/neocomplcache"

Bundle "Lokaltog/vim-powerline"

Bundle "drakeguan/vim-vcscommand"

Bundle "scrooloose/nerdtree"

Bundle "pix/vim-taglist"

Bundle "nathanaelkane/vim-indent-guides"

Bundle "clones/vim-cecutil"

Bundle "tpope/vim-fugitive"

"Bundle "c9s/bufexplorer"

Bundle "jnwhiteh/vim-golang"

Bundle "kevinw/pyflakes-vim"

Bundle "mbriggs/mark.vim"

"Bundle "vim-scripts/TabBar"

Bundle "vim-scripts/DrawIt"

Bundle "vim-scripts/calendar.vim--Matsumoto"

Bundle "vim-scripts/Python-mode-klen"

"Bundle "vim-scripts/pydoc.vim"

Bundle "vim-scripts/VOoM"

Bundle "vim-scripts/qiushibaike"

Bundle "vim-scripts/AuthorInfo"

Bundle "vim-scripts/javacomplete"

Bundle "vim-scripts/javaDoc.vim"

Bundle "drmingdrmer/xptemplate.git"

Bundle "vim-scripts/Java-Syntax-and-Folding"



filetype indent plugin on
  
     
  
    5.
    
      保存
      
        .vimrc或/etc/vim/vimrc里的内容并退出。
      
    
  
    
      
    
     
  
    
      
        6.重新打开任意一个vim窗口,
      
    
  

在命令模式下输入

:BundleList    //会显示你vimrc里面填写的所有插件名称

:BundleInstall  //会自动下载安装或更新你的插件。

 

 

PS: https://github.com/vim-scripts 和 http://vim-scripts.org/vim/scripts.html 这两个网站上都是vim-scripts的插件,即你只需在vimrc中添加你想要的插件名称即可。

vim插件管理器vundle


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论