Simple configuration of Vim

Source: Internet
Author: User


Default location for configuration files:


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".


Users can create private profiles in their home directory

Steps:

1. Switch your login name su liu153 (user's login name), enter the password to

2. Set syntax highlighting

Syntax on

3, display line number

Set Nu

4. Set the number of spaces in indent

Set shiftwidth=4

5. Download Vimrc.zip

The extracted file is. VIMRC, which is placed in the current user's directory.

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

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/F8/wKiom1dFfFGxqzdhAABoHs6SWVw908.png "title=" 1.png " alt= "Wkiom1dfffgxqzdhaabohs6swvw908.png"/>

6. 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

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/F8/wKiom1dFfMeQCB8yAAAu_r6C8EE728.png "title=" 2.png " alt= "Wkiom1dffmeqcb8yaaau_r6c8ee728.png"/>

    7, installation file browser and window Manager-plugins: winmanager                                      Links: 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://s4.51cto.com/wyfs02/M01/80/F6/wKioL1dFf3WBEsczAACRBisEGk4833.png "title=" 4.png " alt= "Wkiol1dff3wbesczaacrbisegk4833.png"/>

8. Last added in ~/.VIMRC:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/F6/wKioL1dFfjzTpcfDAAAsKkyxUx8527.png "title=" 3.png " alt= "Wkiol1dffjztpcfdaaaskkyxux8527.png"/>

9, restart Vim, open xxx.c or XXX.cpp, enter "WM" in normal state (I opened the Test.cpp file) interface as shown:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/F6/wKioL1dFgT2i81a5AACyk43lrfA425.png "title=" 5.png " alt= "Wkiol1dfgt2i81a5aacyk43lrfa425.png"/>



This article is from the "Edge to become Magic" blog, please be sure to keep this source http://liu153.blog.51cto.com/10820414/1783279

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.