vim-indent-guides
vim-indent-guides copied to clipboard
Indentation inside documentation/commentary
It’d be nice if vim-indent-guides could be configured to still hilight indentation after commentary markers, if there is no non-commentary-marker code between the beginning of the line and the commentary markers themselves.
So just to clarify, do you mean showing indent guides for code that's commented out?
For example, with Ruby (where pipes are indent markers):
# if true
# | if true
# | | # some stuff
# | end
# end
Not just code that's commented out, but otherwise, yes, that's what I mean. My specific use-case is that most of my in-code-documentation is in markdown, and now that I've come to depend on vim-indent-guides
, it gets to be a pain to visualize the difference without it.
Here's an (old) example from my own code: http://git.io/Paws.c@1c02#L55-74
Basically, I'd like vim-indent-guides
to hilight indents as if commentary markers were all removed entirely. (i.e. the background of the comment markers themselves should also be hilighted, if you're using the full-width hilighting instead of single-column hilighting)