Sunday, 25 October 2015

How To: Permanently Display line numbers for Vim or Vi




It can be very useful when troubleshooting to display line numbers in Vim or Vi. To enable this in your ~/.vimrc file add :

:set number

which can also be manually set within Vim or Vi. Within the editor to remove the line numbers :


:set nonumber

No comments:

Post a Comment