一、克隆到本机html
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
二、在本机用户目录下建立.vimrc文件python
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html " Plugin 'L9' " Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim. " Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} " Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line
//须要安装插件的时候,在.vimrc文件中加入一行:
Bundle 'your/script/path'
//进入vim后运行如下命令
:PluginInstall //或者在终端执行
vim +PluginInstall +qall //卸载时只需: //去除配置文件中的 Bundle 'your/script/name' //在VIM中运行
:PluginClean
当前最受欢迎的是 Solarized linux
//克隆源码
git clone git://github.com/altercation/vim-colors-solarized.git //复制到指定目录
cp -rf vim-colors-solarized/colors/ ~/.vim/
而后在.vimrc文件中加入如下代码:git
syntax enable set background=dark colorscheme solarized
安装插件YouCompleteMe以后,报错“YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support...”github
sudo apt install vim-python-jedi
安装插件YouCompleteMe以后,报错“the ycmd server shut down(restart wit . . . ”ubuntu
//安装开发工具和CMake:
sudo apt-get install build-essential cmake //确保安装了Python-dev:
sudo apt-get install python-dev python3-dev //编译YCM
cd ~/.vim/bundle/YouCompleteMe ./install.py
将vim中的内容复制到系统剪贴板vim
安装图形化界面的vim,或者从新编译vimapp
sudo apt-get install vim-gnome
https://github.com/Valloric/YouCompleteMe/issues/2573工具
https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64开发工具