Vim usage tips [Continuous Addition of ing ...]

Source: Internet
Author: User

In normal mode:

H-move cursor left, J-move cursor down, K-move cursor up, L-move cursor right

 

U-Undo

X-delete characters under the current cursor

DD-delete the entire row under the current cursor

.-Repeat the previous operation

 

/Pattern-search for objects in the forward direction. N is the next one, and N is the previous one.

? Pattern-Backward Search in the file. N is the next one, and N is the previous one.

Text substitution:

: S/pattern/replacement (/g ). & Is next.

 

F {Char}-current row. Search for the char character after the cursor and move the cursor to the search result. For example, F +, the cursor moves to the current row, followed by the first + character. To continue to the next search result.

T {Char}-similar to f {Char}, but jump to the first character in the search.

 

A-move the cursor to the right and enter the editing mode.

A-move the cursor to the end of the row and enter the editing mode.

O-add blank lines under the cursor and enter the editing mode.

O-add blank lines above the cursor and enter the editing mode.

S-delete the character at the current position of the cursor and enter the editing mode.

 

 

Practical skills:

Add a semicolon at the end of each line: A->;-> ESC-> J->.

Vim usage tips [Continuous Addition of ing ...]

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.