VIM Learning Notes 5---The configuration of VIMRC files

Source: Internet
Author: User

1. Establish a location

(1) Unix

~/.vimrc

(2) Ms-windows

$HOME/_VIMRC

$VIM/_VIMRC


Note: ①.VIMRC is a point in front, indicating that the hidden files in Linux, you can directly open, if you need to see if you should use the LS-A command.

② represents the default directory for Windows$home, and $vim represents the installation directory for your VIM program. If you forget where you installed it, you can go to vim and then: Echo $VIM can view it.

③ If you already have VIMRC files in these directories, you can edit the file directly in Vim: Editor $VIMRC.


2.set Command

Set some system settings, so that each time you do not have to input, the equivalent of VIMRC each time you start to set up.


3.map Command

Map is the meaning of mapping, you can map a series of complex operations to a simple key, or the system default shortcut keys do not adapt to this can be modified.


4.plugin

is to load plug-ins, just download and put in the corresponding directory.

(1) Unix

~/.vim/plugin/

(2) Ms-windows

$HOME/vimfiles/plugin or

$VIM/vinfiles/plugin

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.