Vim configuration (Vimplus) vimplus
Vimplus is a super configuration installer for Vim
GitHub Address: Https://github.com/chxuan/vimplus.git, Welcome to star and Fork.
Contact Vim has been a few years now, but before using Vim is to find someone else to configure the vim, but others are configured to not be able to meet their own needs (you need to have strong C/s code hint completion function, header file/source file switching, static code analysis and other functions), So recently I have time, I summed up some of the vim plug-ins, and then made a key installation program for the same needs of the Vimer reference.
First, the operation
The diagram is the true of vim after I configured it
The following image is borrowed from Valloric/youcompleteme to demonstrate the powerful C + + complement feature
Second, installation configuration (Ubuntu, Centos)
- git clone https://github.com/chxuan/vimplus.git
- CD./vimplus
- sudo./setup.sh
Running the setup.sh script will automatically install and configure Vim, the installation takes about 40 minutes, mainly to download the compilation Valloric/youcompleteme more time, please wait patiently until the installation is complete ^_^
Third, the main function shortcut keys
- View the file directory (F3)
- Display functions, global variables, macro definitions (F4)
- Show static code Analysis results (F5)
- . H. cpp file fast Switching (F2)
- Go to declaration (F + U)
- Go To definition (f + i)
- Open the Include file (f + O)
- Same window buffer Toggle (Ctrl + P/ctrl + N)
- Cursor position Toggle (Ctrl + O/ctrl + I)
- Blur to find files under the current directory and its subdirectories (Ctrl + f)
Iv. after the installation is complete
Run the setup.sh script once the installation is complete, the home directory will be present. ycm_extra_conf.py, this file is YCM implementation of C + + and other language grammar complement function of the configuration file, generally I will put one in the home directory, and then each project copy one. ycm_ extra_conf.py, change the value of the flags variable inside the. ycm_extra_conf.py file to implement the syntax completion function of the relevant include file.
Five, matters needing attention
1. If the network conditions are not good, the installation fails, basically valloric/youcompleteme installation fails, after the installation fails, you need to delete the Youcompleteme directory under the ~/.vim/bundle folder, and then re-execute setup.sh.
When reinstalling, the program will automatically install the plugin that failed to install.
Vim Configuration (Vimplus)