How to delete line numbers in vim?

I set the line numbers in vim using :%!cat -n as suggested here . Line numbers appear, but now when I open vim, I get errors "E481: No range allowed:", and now I want to get rid of line numbers. But how?

0
bash vim terminal
Apr 12 '16 at 17:04 on
source share
1 answer

You can try this first to get line numbers:

 :%!cat -n % 

If you have not saved, you can return to the last save:

 :e! 

If you have line numbers, you can get rid of them like this

 :%s/^[[:blank:]]*[0-9]*\t// 
+3
Apr 12 '16 at 17:17
source share



All Articles