Vim: Change colour depending on indentation/control flow depth?
background-color, control-flow, indentation, syntax-highlighting, vim
Solution
Vim Indent Guides should be adequate.
Problem
In vim, is it possible to change the background colour of the line depending on the depth of the control flow, or of the indentation (which ever is easier)? I seem to remember seeing such a feature in an editor I used previously, but I can't find which one. I use a light-on-dark scheme, and would like to change the background to get slightly lighter with each indentation step, and then obviously darker again as the code steps back out to higher levels. Ideally it would be possible to just change the background of the line-number columns, or just the indentation (I use spaces only).