Login | Sign up

May 17


0

Vi show/hide line numbers

Comments (0)

Vi can display line numbers to the left of each line. Learn how to show and hide those numbers.

Show vi line numbers

  1. Make sure you are in Normal mode. If you are unsure, press Esc.
  2. Type the following and press Enter
  1. :set number

Hide vi line numbers

  1. Make sure you are in Normal mode. If you are unsure, press Esc.
  2. Type the following and press Enter
  1. :set nonumber
Tags:

Comments

There are no comments yet.


Post a new comment

Note: Items marked * are required fields

Post a comment

You must login before you can do that.

If you don't have an account, register for free. It's completely private.

Why register

  • rate posts and comments
  • ask questions about posts
  • request new topics/tutorials
  • mark posts as favorites to easily find them again