Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the shortcut key for Linux vim cursor movement

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report