Monday, January 13, 2025
HomeProgrammingHow do I move to end of line in Vim?

How do I move to end of line in Vim?

In Vim, to move to the end of the current line, you can use the following command:

Command:

$

Explanation:

Press $ in normal mode (press Esc to make sure you’re in normal mode). This will move the cursor to the last character of the current line.

See also  SQL CAST Function

If you want to move to the end of the next line, use:

j$

This moves the cursor to the end of the next line while still moving downward.

RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x