Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Toggle line numbers in VIM

I often find myself needing to turn line numbers on and off in VIM. I’ve typically typed out the full

off - set nonumber and on - set number

Theres also abbreviations:

off - set nonu and on - set nu

TIL you can also toggle quickly between on and off by using:

set nu!

h/t Jason Cummings

Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.