How to highlight lines with more than 80 columns in the Vim

I was looking for a way to see lines longer than 80 columns in VIM and found it.

Just insert it in your ~/.vimrc :

highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/

Source:https://stackoverflow.com/questions/235439/vim-80-column-layout-concerns

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s