vi / vim: Jump To End Of File Command

by on August 6, 2010 · 5 comments· LAST UPDATED August 14, 2013

in , ,

I'm using vim as a text editor and editing a large code file written in python. How do I jump to end of file using vim text editor under Apple Mac OS X Unix operating systems?

You can save a lot of time by using appropriate movement commands in vi or vim text editor. For large file the cursor keys are not the best choice. To move to end of file just type G (press ESC and type capital G):
Sample outputs (jumping from 1st line to line # 82):
Fig.01: vi/vim command demo for EOL jump

Fig.01: vi/vim command demo for EOL jump

You can jump back to beginning of file by typing any one of the following command
You can jump to line number 700 (press ESC type 700G)

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 5 comments… read them below or add one }

1 Ashraf August 14, 2013 at 9:25 am

Thank you for giving a very informative note…


2 goja gattis March 3, 2014 at 4:07 pm

it takes you to the begining of the last line of the file. how can i reach the end of the last line of the file?


3 pifou October 15, 2014 at 1:24 pm

To reach the end of a line, just press they “end” key.
“end” and “home” are very useful for keyboard navgation.


4 biz October 22, 2014 at 5:38 am

GA – to go to the end of the last line
Go – to go to a new line after the last line


5 JD December 9, 2014 at 9:47 pm

Thanks from me as well.
This result justifiably shows high on google results.


Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: