How to take off line numbers in Vi?

user710818 picture user710818 · Nov 30, 2011 · Viewed 108.4k times · Source

For displaying line numbers in a file, I use command:

set numbers

What is the command to clear line numbers from the file?

Answer

Narayan picture Narayan · Nov 30, 2011

If you are talking about show line number command in vi/vim

you could use

set nu

in commandline mode to turn on and

set nonu

will turn off the line number display or

set nu!

to toggle off display of line numbers