Working in a Linux environment is often inseparable from the Vim editor, regardless of which version of the Os,vim style is installed is rarely configured to your custom, because the default configuration does not have any plugins and settings. As the saying goes, "工欲善其事 its prerequisite", in order to improve the efficiency of code reading, editing and debugging, it is necessary to create a vim configuration that belongs to you.
Based on the network can find a lot of configuration, small compiled a self or pretty habit and like the settings, share to everyone, welcome together. My configuration mainly has the following features:
1. Supports tglist display of file and function lists, with the following effects:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/49/wKioL1X5XgagsCwbAAWjcDESXF0806.jpg "title=" vim_ Tglist.png "alt=" Wkiol1x5xgagscwbaawjcdesxf0806.jpg "/>
Only the "WM" key is required to open or close the list of files and functions on the left.
2. Support Code Auto-completion
When you are unsure what to enter, press "CTRL + N" or "ctrl+p" to see the following interface:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/4C/wKiom1X5W-6SsinSAAVvtelO30I475.jpg "title=" vim_ Autocomplete.png "alt=" Wkiom1x5w-6ssinsaavvtelo30i475.jpg "/>
Remember that you need to generate the appropriate tags file and have been added to the current project.
3. Support for one-click compilation
In my profile, the "F5" map to the "make" command, after clicking "F5", you can see the following output:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/49/wKioL1X5XjfxBCHzAAVSCy4VHVw775.jpg "title=" vim_ F5make.png "alt=" Wkiol1x5xjfxbchzaavscy4vhvw775.jpg "/>
Note that because "make" does not take parameters, it will find "Makefile/makefile" to execute, so you need to have a corresponding Makefile exist in the current directory.
Interested readers can download the Vim.tar package, put the unpacked. Vim into the ~/.vim, and replace the. VIMRC with ~/.VIMRC.
(non-completed generation continued)
This article is from the "Store Chef" blog, so be sure to keep this source http://xiamachao.blog.51cto.com/10580956/1695461
Vim Configuration Highlights