user2001487
user2001487

Reputation: 463

VIM: How do I move the cursor to the left of the screen?

I know that 0 moves to the beginning of the line and $ to the end of the line, but I am working with long lines with nowrap set. I want to jump to the left side of the screen.

How would I do that?

While we are at it, how do I jump to the right of the screen?

Upvotes: 2

Views: 1345

Answers (1)

Sundeep
Sundeep

Reputation: 23667

  • g0 to move to beginning
  • g$ to move to end
  • gm to move to middle
  • g^ to move to first non-blank character

Further Reading

Upvotes: 10

Related Questions