Skip to content
glts edited this page May 1, 2013 · 5 revisions

Favour full-line comments.

The heuristic in textobj-comment only looks for full-line comments when doing the upwards search.

Reason: Avoid false positives. Otherwise there are a lot of inline matches we don't want to match.

  • In Vim script every double-quoted string would be an inline match.
  • In Java, every > would be an inline match because the Java filetype plugin declares it a comment leader.
  • ...

Favour simple leaders.

...

Clone this wiki locally