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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -