[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Vim jumps with python code
- Subject: [ale] Vim jumps with python code
- From: agcarver+ale at acarver.net (Alex Carver)
- Date: Sat, 03 Jan 2015 14:10:44 -0800
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.