How do I enable line numbers to be displayed in Vim?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
To enable line numbering:
To disable it:
|
|||
|
And if you want it to apply to every vim you open...put "set number" in your .vimrc! |
|||
|
|
|
I find it extremely useful to have a binding to toggle line numbering (among other things). It can be configured as follows
The first command will toggle the line numbering for the current buffer (local) and the second one will display the current value of the option on the status line. |
|||
|
|