1, the first to install Vim, the default Ubuntu is not installed Vim
sudo Install Vim sudo Install Vim
2, in order to install the pathogen plugin, create a new folder, switch to. Vim, execute git init
mkdir ~/. Vimmkdir ~/.vim/{autoload,bundle}cd. Vimsudoinstall gitgit Init
Initialized empty Git repository in/home/cloudor/.vim/.git/indicates success
3, the installation process, first download Vim-pathogen, Https://github.com/tpope/vim-pathogen can also directly execute the following statement
Curl-lsso ~/.vim/autoload/pathogen.vim https://Tpo.pe/pathogen.vim
Then add the following command to the ~/.VIMRC file, and if the file does not exist, create it first
Vim ~/.VIMRC
Write the following:
Execute Pathogen#infect () syntax Onfiletype plugin indent on
Execute statement, install Sensible.vim
CD ~/.vim/bundlegit clone git://Github.com/tpope/vim-sensible.gitCloning into'vim-sensible'... remote:counting objects:285, Done. Remote:total285(Delta0), reused0(Delta0), pack-reused285Receiving objects: -% (285/285),41.81KiB |48.00KIB/S, Done. Resolving deltas: -% ( the/ the), Done. Checking Connectivity ... Done.
After installing the new plugin into the bundle directory, if the plugin contains doc, you need to run it in vim : Helptags to generate online Help tags
I recommend installing and learning the following plugins in turn: Vim-sensible, Vim-airline, Vim-abolish, Ctrlp.vim, Ultisnips, Vim-surround, vim-easy-align
Reference http://blog.csdn.net/wxqee/article/details/46911857
Http://www.cnblogs.com/zhcncn/p/4030576.html
Configure Vim and plugins under Ubuntu