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
Tweet