line counts in the vi editor - LUX.ET.UMBRA
14

line counts in the vi editor

| | Comments (1) | TrackBacks (0)

Most people dislike vi. But vi is actually one of the most powerful text editors in *nix. Unfortunately, it's tough by default to know which line you're on and what you're doing if you're trying to search for that one bugger syntax error that you can find in a diff, but can't find in the editor.

No problem.

In vi, to set line numbers:
: set number

That's it. Line numbers should show up. If you add this line to your .exrc file, then you'll always have line numbers showing.

0 TrackBacks

Listed below are links to blogs that reference this entry: line counts in the vi editor.

TrackBack URL for this entry: http://life.firelace.com/mt-cgi/mt-tb.fcgi/7111

1 Comments

Edwin said:

It is hardly tough to know what line you are on.
ctrl-g will tell you what line you are on.
123G will go to line 123

Leave a comment

 

About this Entry

This page contains a single entry by darkmoon published on October 29, 2007 12:01 AM.

prtdiag command for Solaris was the previous entry in this blog.

The covering up of fraud by senior management teams is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

 

 

 

 

Powered by Movable Type 4.13