VI initial contact

Source: Internet
Author: User

It has three modes:

I. general mode

2. editing mode

Three Command Line Mode

This section describes several common features ~~

Exit: q write: W

Force :!

(The above can be superimposed)

Show row number: Set nu cancel: Set Nonu

Jump to N rows: ng last row: G first row: Gg (= 1G)

Move n characters to a certain direction:

You can use a direction key or H (left), K (top), L (right), and J (bottom)

# Move 5 characters to the right

Eg: 5l

Search for words:/Word (down )? Word (down)

Search for words between lines X and Y and replace them with: X, YS/word/g (add C to ask for processing)

# Find the llh between 50-rows and replace it with llh automatically

For example, 50,100 S/llh/g

Delete the current row: dd

Copy the current row: yy

Paste: P (paste in the next line) P (paste in the previous line)

Undo: u

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.