Skip to content

Instantly share code, notes, and snippets.

@kwstannard
Created February 25, 2013 16:08
Show Gist options
  • Save kwstannard/5030862 to your computer and use it in GitHub Desktop.
Save kwstannard/5030862 to your computer and use it in GitHub Desktop.
VIM long line highlighting
highlight LongLines guibg=#333300
au BufWinEnter * call matchadd('LongLines', '^.\{80,119}$', -1)
highlight VeryLongLines guibg=#330000
au BufWinEnter * call matchadd('VeryLongLines', '^.\{120,}$', -1)
@srcoley
Copy link

srcoley commented Apr 28, 2014

I had to use this snippet to get it to work.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment