Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

No, I'm not talking about vim, I'm talking about old-school vi; because in vim you can actually issue a :bot and it'll move to the bottom of the file.

share|improve this question
up vote 3 down vote accepted

Esc+Shift+Colon to get to the : prompt.

Then type any integer and ENTER to jump to that line number or...

$ to jump to the end line of the file.

Other uses of the $ in vi are:



this means: take the range of lines from 1 to the end of the file ($) and search them (s) for 'foo' and replace them with 'bar'.

I learned vi back in 1989 and I still use it today!

share|improve this answer
This one makes more sense to me, because $ is the end of the line too. – leeand00 Dec 30 '13 at 13:08

From command mode, type the upper case letter 'G'.

share|improve this answer
What about going back to the top of the file? – Josh K Apr 13 '10 at 22:32
Prefix the G with a line number: 1G – coneslayer Apr 13 '10 at 22:35
Alternatively :gg will bring you to the top – akid Apr 13 '10 at 23:34
Or :1 to jump specifically to line one. – bpanulla Jul 29 '11 at 15:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.