linux vim common commands

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/Nash_Cyk/article/details/79077289

In the window of the students to develop the habit of suddenly vim to develop quite boring, although it can be a lot of IDE and direct synchronization server, and then save directly to the development of windowIDE uploaded directly to the server, such as VS2015 pycharm and so on, but the vim we still have to master the operation, the following record some of the more commonly used commands and techniques, not particularly wide, but the most basic use is enough.
Delete:
a row is deleted dd
multiple rows are deleted from the start to the cursor if you want to delete the cursor line was below 5 5dd
replication:
one is copied ctrl + shift + c ctrl + shift + v paste
Another example like copy the contents of 5 to 10 lines to 15 lines 5,10 copy 15 with the
turning operation:
usually ctrl + d Total half-page ctrl + u downwardly turned up half page
Jump to the bottom of the article:
$
skip head articles unit:
1
bulk add comments:
Ctrl + V region of the selected block and then press the enter key # I press esc

Guess you like

Origin blog.csdn.net/Nash_Cyk/article/details/79077289