Vim practice manual (3) Common cursor movement buttons

Source: Internet
Author: User

Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant

1. cursor character operations

J
Down

K
Up

H
Left

L
Right

$
Move the cursor to the end of the line. Pay attention to the shift key.

0
Move cursor to the beginning of line (home)

^
Move the cursor to the first non-blank character (home) in the row. Press shift.

2. cursor word operations

W
Move cursor to the first word of the last word

W
Move cursor to the first word of the last word and ignore punctuation

E
Move the cursor to the end of the last word

E
Move the cursor to the end of the last word and ignore punctuation marks.

B
Move cursor to the first word of the previous word

B
Move the cursor to the first word of the previous word and ignore punctuation marks.

3. cursor sentence Operations

)
Move the cursor to the beginning of the last sentence

(
Move the cursor to the beginning of the previous sentence

%
Used with "(" and ")" to find the matching half

4. cursor Row Operations

G
Move the cursor to the first non-blank character in the last line of the document

NG
Move the cursor to the nth line of the document, which is equivalent to ": N"

Gg
Move the cursor to the first non-blank character in the first line of the document, equivalent to "1G", also equivalent to ": 1"

<N>
Move the cursor down n rows

5. Optical section operations

}
Move the cursor to the beginning of the next segment

{
Move the cursor to the beginning of the previous segment

%
Used with "(" and ")" to find the matching half

6. cursor page operations

CTRL + F
Pagedown)

CTRL + B
Pageup)

CTRL + d
Flip down half page

CTRL + u
Half page up

H
Move cursor to the first line of the current display page

M
Move cursor to the middle line of the current display page

L
Move cursor to the last line of the current display page

7. freely operate the cursor

CTRL + O
Return to the previous position of the cursor

Reprinted please indicate this blog from "LIU Da csdn blog": http://blog.csdn.net/poechant

-

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.