Highlight right margin in vim
September 9, 2009 2:15 PM Subscribe
VIMfilter: I want to change the background color of every column past 80. What I don't want is softwrap.
Found tons of solutions like these:
Exactly like in TextMate when you turn on "Show right margin indicator" and "Highlight right margin".
Found tons of solutions like these:
:highlight rightMargin ctermfg=lightblue :match rightMargin /.\%>79v/Which is kind of what I want, except it only highlights lines that have content in them. I want to highlight all lines, even if the content doesn't extend that far.
Exactly like in TextMate when you turn on "Show right margin indicator" and "Highlight right margin".
Best answer: I don't think this is possible. On short lines, those columns don't really exist to Vim, so it can't highlight them.
posted by zsazsa at 2:41 PM on September 9, 2009
posted by zsazsa at 2:41 PM on September 9, 2009
Best answer: http://vim.wikia.com/wiki/Highlight_long_lines says zsazsa has it right.
posted by d. z. wang at 7:57 PM on September 9, 2009
posted by d. z. wang at 7:57 PM on September 9, 2009
Try
posted by HannoverFist at 9:19 PM on September 9, 2009
:set nowrapfor turning off softwrap? ( apologies if not applicable )
posted by HannoverFist at 9:19 PM on September 9, 2009
Response by poster: Damn; I guess vim can't do everything. Thanks guys.
posted by sbutler at 10:40 PM on September 9, 2009
posted by sbutler at 10:40 PM on September 9, 2009
This thread is closed to new comments.
posted by pmbuko at 2:38 PM on September 9, 2009