Line numbering is a very useful feature in a text editor, especially for programmers. Being a full feature text editor, Vim also have it supported, but not enabled by default.
To enable it, simply add this line to /etc/vim/vimrc or ~/.vimrc
set number
or just type
:set number
while you’re already in Vim.
3 Comments on this post
Leave a Comment:set nu
:set nonumber # to off numbering
Comment left on 4.21.2008 by seymour
oh, this helped alot! thanks ^_^
Comment left on 10.17.2008 by orgthingy
You’re welcome
Comment left on 10.19.2008 by shakir