jeetsukumaran / vim-indentwise

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

Feature request: IndentWiseNextUpwardIndent #21

Open jrochel opened 11 months ago

jrochel commented 11 months ago

I wish there were a function IndentWiseNextUpwardIndent which behaves like IndentWiseNextGreaterIndent never allowing to jump beyond any line with a smaller indent level.

An example:

A
    B
C
    D
        E

Starting from A effectuating a IndentWiseNextUpwardIndent/IndentWiseNextGreaterIndent gets me to B. On B a IndentWiseNextGreaterIndent gets me to E which I never need to do. (There is no semantic link betwen B and E). Instead I wish to stay "stuck" on B. Would it be possible to add IndentWiseNextUpwardIndent which has me go form A to B but not beyond B?