How do you go to the last line in vi?

How do you go to the last line in vi?
Answer
If you’re already in vi, you can use the goto command. To do this, press Esc , type
the line number, and then press Shift-g
. If you press Esc and then Shift-g without specifying a line number, it will take you to the last line in the file.
 

Tìm kiếm

Back
Top