欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Ubuntu14.04 安装Vundle

程序员文章站 2022-07-05 17:25:12
...

安装一个插件管理软件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 安装插件(如下图界面)

Ubuntu14.04 安装Vundle
: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 退出