Linux VIM cursor movement using shortcut keys

Source: Internet
Author: User

Cursor movement

H or LEFT arrow: the cursor moves one character to the left, a combination of numbers and letters, 5h means 5 characters to the left, and the following three

J or RIGHT ARROW: Move the cursor down one character

K or UP ARROW: The cursor moves up one character

L or DOWN ARROW: the cursor moves one character to the right


CTRL+F: Move cursor down one page

CTRL+B: cursor moves up one page

Ctrl+d: Move the cursor down half a page

Ctrl+u: cursor moves up half page


+: Cursor moves to the next line that is not a space

-: The cursor moves to the previous line that is not a space


N<space>: N represents a number, for example: Press 10, then press SPACEBAR space, the cursor will move to the right of 10 characters of this line (Common)

0 or HOME key: The cursor moves to the front of this line (Common)

$ or END key: cursor moves to the last side of this line (common)


G: Move to the last line of the file ( common )

Ng:n represents a number, for example: 10G, the cursor moves to the 10th line of the file ( common )

GG: Cursor moves to first line of file ( common )

n+ ENTER: Move the cursor down n rows, example: Press 10 First, then press ENTER, the cursor will move down 10 lines (Common)



The cursor movement of Linux vim using shortcut keys

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.