After years of contact with Vim, thought to the top of the mountain is actually still halfway up.
This essay records the recent learning of several plugins, memo.
First Plugin:vundle
A few years ago has been to change their own plug-ins, put into the. Vim directory, now began to be managed with Vundle , which is characterized by the need to have a network, connected to GitHub.
git clone https://github.com/gmarik/vundle.vim.git ~/.vim/bundle/vundle.vim
After that, change the. VIMRC to the beginning.
set nocompatible be improved, Requi Red filetype off " Required " set the runtime path to include Vundle and Initialize set Rtp+=~/.vim/bundle/vundle.vimcall vundle#begin () " Alternatively, pass a path where vundle should install plugins " call vundle#begin (' ~/some/path/here ') " Let Vundle manage Vundle, required Plugin " '
Ok,launch and vim
Run:PluginInstall
Second Plugin:valloric/youcompleteme
Plugin ' Valloric/youcompleteme ' first installed with Vundle. This plugin is a bit complicated, so it has to be recorded. Mac users need to install Macvim.
This plug-in is downloaded and compiled, so if you run the:P luginupdate it will be compiled once again.
Compile method:
CD ~/.vim/bundle/youcompleteme. /Install. SH --clang-completer
If you want Go support, you should add--gocode-completer
Prerequisites, the installation of these under Ubuntu and Mac is the first to have a compilation environment and tools such as
Ubuntu
sudo Install build-essential cmake
MAC installs Xcode,command-line Tools,cmake because there may be before compiling the toolset, I forget that there are no executions of these.
Vim Plugin uses essays