Skip to content

Instantly share code, notes, and snippets.

@kwstannard
Created February 25, 2013 23:13
Show Gist options
  • Save kwstannard/5034219 to your computer and use it in GitHub Desktop.
Save kwstannard/5034219 to your computer and use it in GitHub Desktop.
Indent highlighting
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