Powerful vim configuration (vimplus) and vim configuration vimplus
Vimplus
Vimplus is the Super configuration installer of vim.
Github address: https://github.com/chxuan/vimplus.git. welcome to stars and fork.
I have been using vim for several years now, but previously I used vim to find someone else's configured vim on the Internet, however, other people's configurations cannot satisfy their own needs (they need powerful C/C ++ code prompts, such as full functions, header file/source file switching, and static code analysis ), so recently I have time to summarize some vim plug-ins and then make a one-click installation program for reference by vimer who have the same requirements.
I. Run
This figure shows the reality of vim after I configure it.
The following figure uses Valloric/YouCompleteMe to demonstrate powerful C ++ complementing functions.
Ii. install and configure (Ubuntu and 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. It takes about 40 minutes to install it. It is mainly time-consuming to download and compile Valloric/YouCompleteMe. Please wait until installation is complete. ^_^
3. Shortcut Keys for Main Functions
- View the file directory (F3)
- Display functions, global variables, and macro definition (F4)
- Show static code analysis results (F5)
- . H. cpp file Quick Switch (F2)
- Go to Declaration (f + u)
- Go to definition (f + I)
- Open the include file (f + o)
- Buffer switching in the same window (Ctrl + P/Ctrl + N)
- Cursor Position switching (Ctrl + O/Ctrl + I)
- Fuzzy search for files in the current directory and Its subdirectories (Ctrl + f)
Iv. After installation
Run setup. after the sh script is installed with one click, the HOME directory will exist. ycm_extra_conf.py. This file is a configuration file for YCM to implement C ++ and other language syntax complementing functions. Generally, I will put one in the HOME directory and copy one from each project. ycm_extra_conf.py, change. the value of the flags variable in the ycm_extra_conf.py file can implement the syntax complementing function of the include file.
5. Notes
1. If the network conditions are poor, the installation may fail. Basically, the installation of Valloric/YouCompleteMe fails ~ Delete the YouCompleteMe directory under the/. vim/bundle folder, and re-execute setup. sh,
When you reinstall the agent, the program automatically installs the plug-in that fails to be installed.