vim show linenumbers

Displaying line numbers while editing a file can be handy. This recipe describes how to turn on and off the display of line numbers in vi and vim.

While editing a document (and not inserting text), type the following to turn on line numbers:

:set number

If you tire of the line numbers, enter the following command to turn them off:

:set nonumber

Discussion

Enter your comment
If you can't read the letters on the image, download this .wav file to get them read to you.
 
blog/vim_show_linenumberes.txt · Last modified: 2009/12/10 15:27 by brb
Back to top
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0