Show line number in vim

To show line number in vim, use command

:set number

To hide numbers, type

:set nonumber

To always show line number, edit file

vi ~/.vimrc

Add

set number

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *