VI Use-the method of moving the cursor

Source: Internet
Author: User

h or LEFT ARROW key (←) The cursor moves one character to the left

J or DOWN ARROW key (↓) cursor moves down one character

K or Up ARROW key (↑) The cursor moves up one character

L or right ARROW key (→) the cursor moves one character to the right


[Ctrl] + [f] screen "down" to move one page, equivalent to [PAGE DOWN] key (common)

[ Ctrl] + [b] screen "Up" move one page, equivalent to [PAGE UP] key (common)

[Ctrl] + [d] screen "Down" move half page

[Ctrl] + [u] screen "Up" move half page


+ cursor moves to the next column of non-whitespace characters

- cursor moves to the previous column of non-whitespace characters

The n + SPACEBAR cursor moves the n characters of this column to the right


0 or function key [Home] move to the front of this column prompt (common)

$ or Function key [end] moves to the last face of this column prompt (common)


H The first character of the column that the cursor moves to the top of the screen

The first character of the column that the M cursor moves to the center of this screen

L The first character of the column that the cursor moves to the bottom of the screen

G move to the last column of this file (common)

NG moves to the nth column of this file

GG moves to the first column of this file, equivalent to 1G

n<enter> cursor moves down n columns


This article is from the "unspeakable" blog, please be sure to keep this source http://limeixiong.blog.51cto.com/1888920/1973627

VI Use-the method of moving the cursor

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.