editor - Jumping from start to end of code block - vim -
how jump start end of code block code not under {}.
eg. can jump around code following using shift + %
:
if (true) { //do this; }
but want same in cases like:
def some_func end
around def , end.
with matchit plugin (that ships vim, see :help matchit
), can define def
, end
additional keywords match %
.
if doesn't suffice, countjump plugin allows create custom motions , text objects pair of patterns.
Comments
Post a Comment