01/15/15 19:00:24 ¶ ●

Highlight long(er) lines in Vim - The Perfect Tweet Length

Vim has a colorcolumn setting. This allows to highlight a specific column, or a series of columns, with a particular color. For instance you can highlight the 140th column with a red color to indicate where a tweet would be too long. You can choose from a range of colors.

The good thing about color column is that the highlight will only appear when the actual length of a line comes close to the set column.

Here’s the line from my vimrc:

highlight ColorColumn ctermbg=Magenta guibg=DeepPink4