jeetsukumaran / vim-indentwise

A Vim plugin for indent-level based motion.
220 stars 17 forks source link

Let IndentWiseBlockScopeBoundaryEnd skip to next block if already at end #10

Open dlee opened 9 years ago

dlee commented 9 years ago

If the cursor is already at the end of the indent block, then it would be nice if IndentWiseBlockScopeBoundaryEnd would take you to the beginning of the next indent block. For example:

Unindented
  Indented once
  Indented once
Unindented <--- when here

Unindented <-- jump to here
  Indented once
  Indented once
Unindented
Unindented
  Indented once
  Indented once <--- when here
Unindented

Unindented
  Indented once <-- jump to here
  Indented once
Unindented
moll commented 4 years ago

The other motions seem to behave like that — at least <Plug>(IndentWiseNextEqualIndent) as of today. Ironically, this is exactly the behavior I'm now trying to suppress as I'd like to remain in the same block should I hit <Plug>(IndentWiseNextEqualIndent) enough times. :P