Vim Usage Tips

Source: Internet
Author: User


NYW//Copy the cursor after n words

D//Delete to the end of a line< Span style= "Color:rgb (51,51,51); Font-family:arial;font-size:18px;line-height:26px;background-color:rgb ( 255,255,255); " >                                                        
D $            //Delete to end of a line (price on command)   


1,     move by Screen
(1) The following commands are most commonly used:
Ctrl + f                //Moving forward (moving in the direction of the line number) to move one screen, Want F to represent forward
ctrl  + b               //Move backward one screen, b it should be before.
Ctrl + d               //Move forward half screen, d refers to down
Ctrl +  u               //Moving backward half screen, u means up

Ctrl+e//Edit the contents of the file in the window to move the whole line up.

Ctrl+y//Edit the contents of the file in the window to move the whole line down.


(2) reposition screen command with Z
z + Enter//move the current line to the top of the screen
extend the next command such as:
100z + Enter//move line 100th to the top of the screen, remember to enter after 100z
Z.//move the current line to the center of the screen, do not enter, remember
z//Move the current line to the bottom of the screen, same as above, do not enter


Top line of the current screen: H
Current screen last line: L
Current Screen Center: M

This article is from the "whatever957" blog, make sure to keep this source http://whatever957.blog.51cto.com/6835003/1652618

Vim Usage Tips

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.