vim-indent-guides icon indicating copy to clipboard operation
vim-indent-guides copied to clipboard

Indentation inside documentation/commentary

Open ELLIOTTCABLE opened this issue 13 years ago • 2 comments

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.

ELLIOTTCABLE avatar Nov 12 '11 12:11 ELLIOTTCABLE

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

nathanaelkane avatar Nov 28 '11 22:11 nathanaelkane

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)

ELLIOTTCABLE avatar Nov 29 '11 21:11 ELLIOTTCABLE