Common shortcut keys for vim operation

Source: Internet
Author: User

Vim


I: Insert
I: Insertion at the beginning of the line
A: Insert after cursor
A: End of line insertion
O: Next line Insert
O: Previous Row insert
X: Delete one character after
X: Delete the previous character
U: Undo
U: Undo All actions
Shift+d: Deletes all after the cursor.
^: Back to the beginning
$: Back to end of line
DD: Delete the row
5DD: Delete cursor to 5 lines
YY: Copy the row
4YY: Copy 4 rows
P: Paste
GG: Back to the first line
G: Back to the last line

Operation of the word:
DW: Delete a word
YW: Copy a word
P: Paste

Replace:
: 1, $s/root/root/g all replace root with root without g if you change the first one.
Off the signifier: \
Selective "Replacement" (1, $s/root/root/gc carriage return y/n)

Find:
/ABC finding ABC in the full text
N: Jump to the next ABC place
N: Jump to the first ABC place

Set NU Display line number

View the contents of another file
: E/etc/shadown View Shadown file

R/ETC/FS: The FS content is added below the current line.


This article is from the "night Reading Wit Hope female Ghost" blog, please be sure to keep this source http://more3.blog.51cto.com/9929586/1614687

Common shortcut keys for vim operation

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.