Today I Learned

hashrocket A Hashrocket project

Use colorcolumn to visualize maximum line length

With the large screen real estate we get nowadays, its hard to recognize when your code's line length is getting out of control. You can use auto word wrapping (:set textwidth=n) or some other restrictive method. However I just want to visually see where the break is:

:set colorcolumn=80

This adds a nifty highlight line at 80 characters that I can use as a reference.

h/t Vinicius Negrisolo

See More #vim TILs
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.