1
Is there a way to make Vim warn me after a line has exceeded n
characters?
Something simple like a screen flash or the text go bold red or something.
!! Bonus points if n
can be made a variable that is easy to set in each individual window (I use 80 columns usually, but 100 columns for PHP).
1
colorcolumn
doesn't add only one column:set colorcolumn=81,82,83
orlet &colorcolumn=join(range(81,999),",")
– Chai T. Rex – 2018-08-30T02:36:25.3631@ChaiT.Rex, thank you for the correction, I somehow missed this back then. Updated the answer to fix this, weird wording, formatting and provide hyperlinks to the documentation. By the way,
999
is too much, Vim won't highlight more than256
columns. – xaizek – 2018-08-31T09:34:17.180thanks,
colorcolumn
serves the purpose. – iDontKnowBetter – 2012-08-28T00:34:57.323or if you want to shorten it :set cc=80 – Braden – 2012-09-02T16:01:27.310