Go To End of File in VI Editor

If you want to go to the end of file. You can press ESC button and “G” (Capital G) for go to end of file in VI or VIM editor.

To move to end of file just type G (press ESC and type capital G):

ESC + G

You can jump back to beginning of file by typing any one of the following command

ESC + gg

or

ESC + 1G

You can jump to line number 700 (press ESC type 700G)

ESC + 700G

credit :: www.cyberciti.biz

 

Advertisements
Go To End of File in VI Editor