Simple configuration of Vim

Source: Internet
Author: User

First of all, first to understand what is VIM?

Vi/vim They are multi-mode editors, the difference is that Vim is the upgrade version of VI. It is not only compatible with all VI directives, but also has some new stunts inside. such as: lexical highlighting.

Location of the configuration file

Under directory/etc/, there is a file named VIMRC, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file named: ". VIMRC".


1. Set line number, lexical highlighting, auto indent

Download Vimrc.zip, unzip the file as. VIMRC, put it in the current user's directory.

Links: Http://files.cnblogs.com/ma6174/vimrc.zip

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/7C/wKioL1dC3ESQX2wjAAB6wBNR84U358.png "title=" 2.PNG " alt= "Wkiol1dc3esqx2wjaab6wbnr84u358.png"/>


2. Installing the TagList Plugin

Links: http://www.vim.org/scripts/script.php?script_id=273

Download Taglist_xx.zip, the extracted doc content to ~/.vim/doc, the extracted plugin under the content of the copy to ~/.vim/plugin


3. Install the File Browser and window manager Winmanager Plugin

Links: http://www.vim.org/scripts/script.php?script_id=95

Download Winmanager.zip, version 2.X or above.

Put the extracted doc content into ~/.vim/doc, and copy the extracted content from the plugin to the ~/.vim/plugin

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/80/wKiom1dDFvKCqaFrAAE31tc2PFk135.png "title=" 4.PNG " alt= "Wkiol1dc3hirikkmaaaxp5pqmly690.png"/>


4. At the end of the ~/.VIMRC add:


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/80/wKiom1dDFUzRNfjWAAAZmvJjf_k085.png "title=" 2.PNG " alt= "Wkiom1ddfuzrnfjwaaazmvjjf_k085.png"/>

5. Restart Vim, open xxx.cpp or XXX.C, enter "WM" in normal state, you will see the following interface.


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/7E/wKioL1dDFemjNPYqAACp5wuYT8c595.png "title=" 1.PNG " alt= "Wkiol1ddfemjnpyqaacp5wuyt8c595.png"/>

This article is from the "go to see the Stars" blog, please be sure to keep this source http://10810429.blog.51cto.com/10800429/1782315

Simple configuration of Vim

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.