Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the shortcut key for Linux vim cursor movement

Shulou Source: shulou.com Published: 2022-06-01 15:50:05 10月04日 Update

This article mainly explains the "Linux vim cursor movement shortcut key is what", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "Linux vim cursor movement shortcut key is what" it!

Cursor movement

H or left arrow: the cursor moves one character to the left. Numbers and letters are used together. 5h means to move 5 characters to the left. The following three are analogous at a time.

J or right arrow: move the cursor down one character

K or up arrow: move the cursor up one character

L or down arrow: move the cursor one character to the right

Ctrl+f: move the cursor down one page

Ctrl+b: move the cursor up one page

Ctrl+d: move the cursor down half a page

Ctrl+u: move the cursor up half a page

+: move the cursor to the next line that is not a space

Move the cursor to the previous line that is not a space

N: n represents a number, for example: press 10, then press the spacebar space, the cursor will move 10 characters of this line to the right (commonly used)

0 or home key: move the cursor to the front of the line (commonly used)

$or end key: move the cursor to the end of the line (commonly used)

G: move to the last line of the file (commonly used)

NG: n represents a number, for example: 10G, move the cursor to line 10 of the file (commonly used)

Gg: move the cursor to the first line of the file (commonly used)

N + enter key: move the cursor down n lines, for example, press 10 first, then press enter, the cursor will move down 10 lines (commonly used)

: n + enter key: n represents a number, the cursor moves to the nth line (commonly used)

Thank you for your reading, these are the contents of "what is the shortcut key for Linux vim cursor movement?" after the study of this article, I believe you have a deeper understanding of what the shortcut key for Linux vim cursor movement is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Move cursor commonly used one line characters shortcuts numbers arrows files spaces learning content enter key next three representatives letters that is ideas situations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi MySQL OPPO Reno Docker