Created
February 25, 2013 16:08
-
-
Save kwstannard/5030862 to your computer and use it in GitHub Desktop.
VIM long line highlighting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
highlight LongLines guibg=#333300 | |
au BufWinEnter * call matchadd('LongLines', '^.\{80,119}$', -1) | |
highlight VeryLongLines guibg=#330000 | |
au BufWinEnter * call matchadd('VeryLongLines', '^.\{120,}$', -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to use this snippet to get it to work.