Display line number in VI / VIM

Turn on

Press [Esc] to exit insert or append mode

Raise a promt by pressing [:]

Type set number and hit enter.

 

Turn off

As above, but the command is set nonumber

 

Leave a Reply

Your e-mail address will not be published. Required fields are marked *