Objective:
for the configuration of vim, I also saw a lot of methods on the Internet, touched a lot of walls, so I know the pain. So let's share some of the ways I can configure vim below.
Configuring the Environment
First of all, the description of my environment for the CentOS6.5 version, the configuration of CentOS should be no problem, but other systems, you can refer to, may be due to environmental reasons may be wrong oh.
Other
Another need to explain is that my operation is basically in the folder operation, although it can be simple and intuitive to achieve the configuration of vim, but the sense of gold is not particularly high, in such a process of exploring their own knowledge can expand their own many other knowledge.
But the core of the idea is similar, is to put some of the settings you want into a. vimrc file inside, usually in their own working directory created, but in/etc/ The creation of this directory is useful for all. C and. cpp, and this blog is based on the vim configuration implemented in the working directory.
I. Configuration. VIMRC Documentation
mentioned earlier. VIMRC this thing, just write some of the settings you need into this document. So what settings do you need, no hurry! Click on the link below to download one on the line. For VIM configuration document, now online has a lot of, but are very miscellaneous, basic casually Baidu can find a lot.
Click this link to download:http://files.cnblogs.com/ma6174/vimrc.zip
Then paste the extracted files directly into the work document, the work document is CentOS to the left of your user's home. :
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/F8/wKioL1dFr8Gg26ZGAACNwvTcyz0418.png "title=" Vim1.png "alt=" Wkiol1dfr8gg26zgaacnwvtcyz0418.png "/>
However, there is a problem here, you will find that you have just pasted the past documents, disappeared, why? Because the. Files under the virtual machine are hidden, you just need to tick show Hidden files on the view and you won't have the intelligence.
Second, install the TagList plug-in
Download Taglist_xx.zip, unzip the completion, will extract the contents of the doc to ~/.vim/doc, will extract the contents of plugin under the copy to ~/.vim/plugin. Generally at the beginning of the working directory there is no. vim folder, so create one yourself. Vim is the same way you would create a folder under Windows.
Click this link to download:http://www.vim.org/scripts/script.php?script_id=273
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/F8/wKioL1dFr-iBkQU0AACxt5Nb0yk247.png "title=" 2.png " alt= "Wkiol1dfr-ibkqu0aacxt5nb0yk247.png"/>
Third, add the following three instructions in the. VIMRC:
Let tlist_show_one_file=1
Let Tlist_exit_onlywindow=1
Let Tlist_use_right_window=1
Iv. installation file Browser and window Manager-plugin: Winmanager
decompression Winmanager.zip, will extract the contents of the doc to ~/.vim/doc, the extracted plugin under the contents of the copy to ~/.vim/plugin
Click this link to download: http://www.vim.org/scripts/script.php?script_id=95
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/F9/wKioL1dFsLGAYNssAABNcfiy6eA351.png "title=" 3.png " alt= "Wkiol1dfslgaynssaabncfiy6ea351.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/FA/wKiom1dFr9eSpUaAAABlJL0Z9ZU816.png "title=" 3-1. PNG "alt=" Wkiom1dfr9espuaaaabljl0z9zu816.png "/>
Add the following two lines of instructions to the. VIMRC:
Let g:winmanagerwindowlayout= ' fileexplorer| TagList '
Nmap wm:wmtoggle<cr>
Six, then restart Vim, open a. C or a. cpp file, enter "WM" in the normal state , You can see the following effect
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/FA/wKiom1dFsF3hGOxeAAEo7tQay7E847.png "title=" 4.png " alt= "Wkiom1dfsf3hgoxeaaeo7tqay7e847.png"/>
Maybe after you configure, will be with my feeling is not quite the same, actually very easy, choose edit below this option, in the colors inside choose a bit better.
This article is from "drip" blog, please be sure to keep this source http://10740329.blog.51cto.com/10730329/1783245
Configuration of vim under "Linux" CentOS