Vim is a text editor developed from VI that is more powerful. And Vim.tiny is a lite version of Vim, so it's imperative to install Vim. At the same time, many programmers in Windows like sourceinsight This tool to look at the code, various syntax highlighting is very comfortable. As a programmer-created editor, Vim doesn't make sense for programmers to comfortably edit code, but it's often difficult for novices to configure it as a pleasing environment. The following method can be used in a very simple way to configure Vim as Sourceinsight.
First, installation environment:
Linux operating system (Ubuntu/centos)
Second, the VIM configuration successful final:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/F7/wKiom1dFcqGBKSTiAAEeoQX6uto853.png "title=" 1.png " alt= "Wkiom1dfcqgbkstiaaeeoqx6uto853.png"/>
Third, installation steps
So, how to configure the environment variables of vim, so that it meet their own personalized needs?
Next, let me share with you the steps for VIM configuration for everyone to share with each other.
1. Download the VIM configuration file
To create a. VIMRC (. hidden file) on the CentOS home page, I post the download link for easy copy download:http://files.cnblogs.com/ma6174/vimrc.zip, Everyone in the CentOS Internet to determine the network after downloading files. VIMRC, and after downloading, unzip, put in the. vimrc file.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/F6/wKioL1dFeePAmAI-AABY0JzIurg453.png "title=" 2.png " alt= "Wkiol1dfeepamai-aaby0jziurg453.png"/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/F8/wKiom1dFezXgM-f1AACg-aP86nw730.png "title=" 3.1png.png "alt=" Wkiom1dfezxgm-f1aacg-ap86nw730.png "/>
When you are done, open the file as shown in:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/80/F8/wKiom1dFelTzLB3qAAC6mevXwWU048.png "title=" 4.png " alt= "Wkiom1dfeltzlb3qaac6mevxwwu048.png"/>
2. Installing the TagList Plugin
Links:http://www.vim.org/scripts/script.php?script_id=273
Download Taglist_xx.zip, unzip complete.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/F8/wKiom1dFfS-g2NJaAAA8N4VUI8I607.png "title=" 5.png " alt= "Wkiom1dffs-g2njaaaa8n4vui8i607.png"/>
The extracted doc content is put into ~/.vim/doc, and the extracted contents are copied to ~/.vim/plugin.
As shown in the doc file (plugin is not released):
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/F9/wKioL1dFtcfDETesAAA81UKWl8U121.png "title=" 6.png " alt= "Wkiol1dftcfdetesaaa81ukwl8u121.png"/>
3. Enter the command vim. VIMRC open the file. VIMRC, add the instruction at the end of the last document:
Let tlist_show_one_file=1
Let Tlist_exit_onlywindow=1
Let Tlist_use_right_window=1
Save exit.
4. Install the File Browser and window manager
To the link to download the plugin: Winmanager.
Link address:http://www.vim.org/scripts/script.php?script_id=95
Download the winmanager.zip,2.x version above.
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
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/F8/wKioL1dFoHmgj68QAABDt7ZWZ6g492.png "title=" 9.png " alt= "Wkiol1dfohmgj68qaabdt7zwz6g492.png"/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/F9/wKioL1dFsZyhQF-UAABaMOO6_7k784.png "title=" 11.png "alt=" Wkiol1dfszyhqf-uaabamoo6_7k784.png "/>
5. Add a command at the end of the ~/.VIMRC:
Let g:winmanagerwindowlayout= ' fileexplorer| TagList '
Nmap wm:wmtoggle<cr>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/FA/wKiom1dFrzbCPexNAADhNg7iLkY994.png "title=" 10.png "alt=" Wkiom1dfrzbcpexnaadhng7ilky994.png "/>
6. Then restart Vim to open ~/xxx.c or ~/xxx.cpp
Write a program code, enter "WM" in the normal state, you will see that your vim configuration is successful.
This article is from "Han Jing's Blog", please make sure to keep this source http://10740184.blog.51cto.com/10730184/1783252
Installation and configuration of vim under "Linux" Linux operating system