Common operations for the Super editor--vim

Source: Internet
Author: User
Tags gz file

Like, it's all I'm used to.

Up or down: JKHL

Next word: w

First word: b

Next screen: Ctrl + F

Previous screen: Ctrl + B

Search some_string:/some_string

Replace the global some_string with new_string:%s/some_string/new_string/g

Continue search Next: N

Continue searching for previous: N (SHIFT + N)

Completion: CTRL + N, CTRL + P (next, previous abbreviation)

Remove one letter: X

Remove a word: DW

Delete a line: DD

Delete 3 lines: 3d

Copy a word: yw

Copy Current line: yy

Paste: P

Select N rows: Shift + V, then JK

Quickly open a file: Ctrl + T

Quickly open the previous file: Ctrl + E

Skip to file header: GG

Skip to end of file: Shift + G

What's new in front of the cursor: I (insert abbreviation)

What's new after the cursor: A (abbreviation for add)

Jump to the end of the line quickly: SHIFT + 4

Jump to the top of the line quickly: 0

Last edited by: G;

Next editing Place: G,

Undo Last Action: U

Restore previous action: Ctrl+r

Repeat the last command:.

Transform to uppercase: ~

Automatic typesetting: in command-line mode, first use "GG" to move the cursor to the beginning of the document, and then use "V" to switch to the visual mode, then "G" to move the cursor to the end of the document (equivalent to the full selection), and finally use "=" to complete the automatic layout of the document.

To comment the whole block of content comment blocks: the input of the line I//ESC I selected to comment on is inserted in front of the selected line until ESC. To remove the comment: Select the comment//, then the D column block is selected after I is inserted in front, a is inserted in the column block mode is selected, the row is selected, V is the normal selection

. tar.gz File Installation Method:

Unzip first, then go to the file directory, execute./config make sudo make install three instructions

Common operations for the Super editor--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.