Movement of an action command in a document

Source: Internet
Author: User

Basic line-based movement:

Look at the things you understand: (mainly understand the screen line and the actual line is good)

^         moves to the first non-whitespace character of the actual line; G^         moves to the first non-whitespace character of the screen line; GJ, GK, G0, g$ corresponds to the movement of the screen line; In addition:Ctrl- f Scroll down one page, ctrl-b up one page, Ctrl-D down halfpage, ctrl-u down half page, H: Page top of the current page; M: The middle of the page in the current page; L: The end of the current page ; ZZ: The line where the cursor resides is centered on the screen;

Word-based movement:
W               forward moves to the beginning of the next word; b               moves to the beginning of the current/next word; e               moves to the end of the current/ next word; GE              moves backwards to the beginning of the previous word ;
For the difference between a word and a string: a long one short bar ...!! It's possible.
When the string is oriented, the W,b,e,ge is changed to W,b,e,ge;
The search function of characters:
 f{char} move forward to the next {char} location;                                 T{char} moves backwards to the previous {char} location; T{char} to move forward to the previous character where the next {char} is located;
 T{char} moves backwards to the previous character where the previous {char} is located;  
 
 ; Repeat the last lookup command;
 To reverse lookup of the last lookup command;  

 

 for finding a word, you can use: 
/{word} forward lookup; ? {Word} reverse lookup; n the result of a forward traversal lookup;
N The result of the reverse traversal lookup;  

Move the action command in the document

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.