26
8
Most of the text editors and IDEs that I use these days have a feature where they can display a line at a certain character length in the text buffer. It's useful when you want to keep lines in a file under a certain length.
Is there any way to get Vim to do this, preferably using the already defined textwidth
value? Lines will automatically wrap at that point, but I'd really like to be able to see where it is as well.
In case it matters, I'm mainly using gVim on Windows, but I'd love it if the solution works across Vim versions.
It would be nice if this worked when using multiple windows side-by-side. My monitor is wide enough to show several windows in a row, each one > 80 chars but colorColumn only works on the first (leftmost) window. – Eno – 2015-03-16T16:28:13.077
What version of Vim is this supported in? It's not working for me in gvim 7.2. – Herms – 2010-11-05T16:53:51.390
I'm running 7.3. I just pulled the source code and looked, this command was introduced in 7.3. – lornix – 2010-11-05T17:18:56.527
Works for me on Ubuntu 12.04 with vim 7.3. gvim 7.3 for windows has been available since at least October of 2010. @Herms can you make this the answer?
– poindexter – 2013-01-03T15:40:05.557