nG
Where n is any number, move the cursor to line n in the current file. If no number is given, move to the last line in the file.
« VI Command of the Week - #4 | Main | Grrr, SpamAssassin... »
nG
Where n is any number, move the cursor to line n in the current file. If no number is given, move to the last line in the file.
This page contains a single entry from the blog posted on May 11, 2007 10:53 AM.
The previous post in this blog was VI Command of the Week - #4.
The next post in this blog is Grrr, SpamAssassin....
Many more can be found on the main index page or by looking through the archives.
Comments (2)
You can also just type ":" and then the number to get to that line. Cool trick.
Posted by Jing Wang | May 11, 2007 11:43 AM
Posted on May 11, 2007 11:43
Also ":n", where n is the line number, works.
Posted by Bill Boebel | May 12, 2007 12:01 AM
Posted on May 12, 2007 00:01