Created
July 17, 2012 15:36
-
-
Save kwstannard/3130154 to your computer and use it in GitHub Desktop.
Indent, trailing whitespace, and long line highlighting
This file contains 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) | |
highlight Indent9 guibg=#645640 | |
au BufWinEnter * call matchadd('Indent9', '^\s\{20}\&^\s\{17}', -1) | |
highlight Indent8 guibg=#564832 | |
au BufWinEnter * call matchadd('Indent8', '^\s\{18}\&^\s\{15}', -1) | |
highlight Indent7 guibg=#484024 | |
au BufWinEnter * call matchadd('Indent7', '^\s\{16}\&^\s\{13}', -1) | |
highlight Indent6 guibg=#646452 | |
au BufWinEnter * call matchadd('Indent6', '^\s\{14}\&^\s\{11}', -1) | |
highlight Indent5 guibg=#565644 | |
au BufWinEnter * call matchadd('Indent5', '^\s\{12}\&^\s\{9}', -1) | |
highlight Indent4 guibg=#484834 | |
au BufWinEnter * call matchadd('Indent4', '^\s\{10}\&^\s\{7}', -1) | |
highlight Indent3 guibg=#565656 | |
au BufWinEnter * call matchadd('Indent3', '^\s\{8}\&^\s\{5}', -1) | |
highlight Indent2 guibg=#484848 | |
au BufWinEnter * call matchadd('Indent2', '^\s\{6}\&^\s\{3}', -1) | |
highlight Indent1 guibg=#404040 | |
au BufWinEnter * call matchadd('Indent1', '^\s\{4}\&^\s\{1}', -1) | |
highlight RedundantSpaces guibg=red | |
au BufWinEnter * call matchadd('RedundantSpaces', '\s\+$', -1) |
Author
kwstannard
commented
Jul 17, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment