« VI Command of the Week - #4 | Main | Grrr, SpamAssassin... »

VI Command of the Week - #5

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.

Comments (2)

Jing Wang:

You can also just type ":" and then the number to get to that line. Cool trick.

Also ":n", where n is the line number, works.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

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.

Powered by
Movable Type 3.34