Created
February 25, 2013 23:13
-
-
Save kwstannard/5034219 to your computer and use it in GitHub Desktop.
Indent 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
let indent_colors = ['#645640','#564832','#484024','#646452','#565644','#484834','#565656','#484848','#404040'] | |
let indent = 8 | |
for icolor in indent_colors | |
let indent_name = 'Indent' . indent | |
exec 'highlight ' . indent_name . ' guibg=' . icolor | |
au bufwinenter * call matchadd(indent_name, '^\s\{' . (indent * 2 + 4) . '}\&^\s\{' . (indent * 2 + 1) . '}', 200-indent) | |
let indent -= 1 | |
endfor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment