Vim usage (always updated)

Source: Internet
Author: User

 How to set Vim's personal preferences
The default VI many features are not open, we can customize the VI as needed, you need to modify the vi configuration file, the global configuration file in/ETC/VIMRC, but generally only need to modify the user's configuration file can come,
Create a. vimrc file under the user directory

the location of the. VIMRC
there is one under the user's home directory (/home/username). Vimrc/etc There is also a VIMRC
generally only change the user home directory below. VIMRC This profile only needs to be used by the Su-username to make the configuration effective (for example, Su-zhang3) only for user-specific changes

How to view and open the edit under the corresponding folder. VIMRC
. VIMRC use Ls-al for hidden files to view
First enter the PWD clear now path and directory, ~ represents/home/user, if you want to modify the user home directory of the. vimrc file, you can directly input vim ~/.VIMRC edit

Preference Settings Statement
Syntax on automatic syntax highlighting
Set tabstop=4 Set tab length is 4
Set nu! Show line Numbers

Common Keys and usage
A means inserting after the cursor
X means delete

Vim usage (always updated)

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.