How To Move End of File and Line In Vi or Vim? – POFTUT

How To Move End of File and Line In Vi or Vim?

Vim and its predecessor Vi are popular command-line based text editors. There is a lot of functionality that the text editor provides. In this post, we will look at how to move cursor end of line and end of the line.

One-Shot End Of Line

We can move the cursor to the end of the line at one shot with a dollar sign $.

Word By Word End Of Line

Another alternative to moving the cursor to the end of the line is hoping word by word with e.

One-Shot End Of File

Using G the cursor will jump to the end of the file.

LEARN MORE  Vi and Vim Search and Replace Operations

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)