Vim Editor Starter (i)

Source: Internet
Author: User

Vim has four modes of normal Mode,insert Mode,commond mode and visual mode

I key into insert mode, insert the character before the cursor cover

A key enters insert mode, which is inserted after the character that is covered by the cursor

o key into insert mode, insert a new line below the line where the cursor is located

o key into insert mode, insert a new line above the line where the cursor is located

<ESC> key back to normal mode

The H,j,k,l key uses these four keys to move the cursor, H is left, L is right, J is down, K is up

X key to delete a single character

U-key undo Last Edit

U key to undo edits to a whole line, press U again to restore

Ctrl-r undo U-Key Revocation operation

ZZ Save and exit

: q! Do not save exit

DD Delete the entire line where the cursor is located

: Help opens and enters the assistance window

: Help subject get assistance with subject , which shows the command help for normal mode by default, to specify that other modes need to be prefixed, such as specifying the insert mode plus i_ prefix

You can add a number before almost any action, indicating the number of times the action was executed

Enter vimtutor on the command line to open a tutorial that comes with vim

Vim Editor Starter (i)

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.