zoukankan      html  css  js  c++  java
  • vim插件管理器vundle

    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中添加你想要的插件名称即可。

  • 相关阅读:
    木有晚餐吃的教训暴力图的时候
    HDU1231最大连续子序列DP
    java连连看(GUI有进度条加背景音乐)
    HDU2064简单hanno塔
    HDU1232并查集入门(畅通工程)
    HDU3460Ancient Printer(trie)
    在window下搭建php+apche+masql的方法(个人的蛋疼经历,绝对可靠)
    Java学生管理系统(GUI)(又写了这种破玩意儿了老师,放过我们吧,能不能来点新意)
    VUE使用elpagination添加分页功能
    JS 中深拷贝的几种实现方法
  • 原文地址:https://www.cnblogs.com/helloweworld/p/3520956.html
Copyright © 2011-2022 走看看