Ubuntu14.04 安装Vundle

安装一个插件管理软件Vundle,用它来管理我们安装的软件,对Vundle还不太了解,主要使用Vundle来安装,更新插件。

1. 插件下载

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

2. 插件配置

https://blog.csdn.net/lwxjkk/article/details/102716978
vim ~/.vimrc

"""""""""""""""""""""""""""""""""""Vundle"""""""""""""""""""""""""""""""""""
set nocompatible
filetype off 
set rtp+=~/.vim/bundle/Vundle.vim   "设置运行时路径

call vundle#begin()                 " vundle初始化, 需要配置的插件都放在begin和end中间
Plugin 'VundleVim/Vundle.vim'       "Vundle

"指定插件的来源
Plugin 'L9'                                                 " plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'git://git.wincent.com/command-t.git'                " Git plugin not hosted on GitHub
Plugin 'tpope/vim-fugitive'                                 " plugin on GitHub repo
Plugin 'file:///home/gmarik/path/to/plugin'                 " git repos on your local machine (i.e. when working on your own plugin)
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}                  " The sparkup vim script is in a subdirectory of this repo called vim.
Plugin 'user/L9', {'name': 'newL9'}                         " Avoid a name conflict with L9                                                                                                                  

"自己需要的插件
Plugin 'taglist.vim'                                        "Taglist
Plugin 'https://github.com/universal-ctags/ctags.git'       "Ctags
Plugin 'https://github.com/scrooloose/nerdtree.git'         "Nerdtree
Plugin 'https://github.com/Valloric/YouCompleteMe.git'      "YouCompleteMe
call vundle#end()
"""""""""""""""""""""""""""""""""""Vundle"""""""""""""""""""""""""""""""""""

:wq 保存退出vim
vim ~/.vimrc 打开
:PluginInstall 安装插件(如下图界面)

在这里插入图片描述
:exit (看到左下角状态栏下Done)退出安装插件
:wq 保存退出vim
vim ~/.vimrc 打开文件

3. vundle使用方法
Deprecated Names  | New Names
  -----------------------------
  Bundle            | Plugin
  BundleInstall(!)  | PluginInstall(!), VundleInstall(!)	    - install (update) plugins
  BundleUpdate      | PluginUpdate, VundleUpdate		    	- updates the configured plugins.
  BundleSearch(!)   | PluginSearch(!), VundleSearch(!)		    - search (or refresh cache first)
  BundleClean       | PluginClean(!), VundleClean(!)		    - confirm (or auto-approve) removal of unused plugins
  BundleList        | PluginList				    			- list configured plugins

左边是旧指令名字,右边是新指令名字,输入:q 退出

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值