[ale] Vim jumps with python code

Alex Carver agcarver+ale at acarver.net
Sat Jan 3 17:10:44 EST 2015


Does anyone know how to jump around in python code the same way that the
percent (%) shortcut can jump between opening and closing braces in
C-like languages?

For example, if I'm in a long if-else block:

if foo:
	stuff
	stuff
	stuff
	...
	stuff
else:
	stuff
	stuff
	stuff

I want to put the cursor on the else: and jump up to the if: (or the
related top of construct for other types of blocks).  For C-like code:

if
{
	stuff
	stuff
}
else
{
	stuff
	stuff
}

I can sit on the braces and bounce between them with just the % key.


More information about the Ale mailing list