Select progressively “inner” and/or “outer” code blocks in vim

Just repeat the object selection keys. For your examples this would be va}a} or vi]i].

I don’t think that there is a way to then reduce the selection back to an inner block. Other than to use Esc to clear the selection, `` to jump back to your starting poing and then redo the initial selection.

Leave a Comment