Linux – vi/vim Show and Hide Line Number

You can show the line number in the vi editor by entering the following input command.

  • :set number


 

If you want to hide the line number, enter

  • :set nonumber

Done =)

Reference: Show line numbers in vi or vim

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.