Show line numbers in vi or vim

October 11, 2007

Found here: http://www.tech-recipes.com/unix_tips402.html

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

Transform your business without wasting money.

We help you identify, audit and implement technology changes within your business to create leverage points to scale your company faster.