Show Some Line Numbers in vim (vi) in RHEL/CentOS/Scientific Linux

Alright check this shit out..  I’m one of those dudes who likes to have my text editors display the line number at all times.  CALL ME OLD FASHIONED!

So if you want line numbers to be displayed in vi (which is really vim these days in the GNU/Linux version we’re talking about), run the following:

vmhacks.com]$ echo “set number” >> ~/.vimrc

BOOM, done.

If you just want it to display once for the file you’re working on, Hit esc to make sure you’re in command mode and then type the following:

:set number

hit return to apply it

Mm.,