Suppose I have a defined text object. For example, I have a
ii text block which defines all the contiguous lines around the cursor at the same level of indentation or deeper. I know what it means to, say, yank or delete this text block.
As a consequence, as I move through the document, there is a well defined "start of this type of block" and "end of this type of block". I would like to have a motion which would take me to these positions. For example, given:
a piece of indented text with some words in it and some more
if I were to do something like
geii ("go end inner indent?") from
indented, I would end up at "some words".
It would similarly be nice to be able to go to the "next start" of a block. In this case, the "next start" of an indentation block would be any time the indentation increases. So from the top, you would move to "indented", then "with", then to "and some".
Is there a plugin that achieves this? All the better if it's independent of the specific kind of text block.