<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">THis might be useful:<br><a href="http://stackoverflow.com/questions/896145/more-efficient-movements-editing-python-files-in-vim">http://stackoverflow.com/questions/896145/more-efficient-movements-editing-python-files-in-vim</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 3, 2015 at 5:10 PM, Alex Carver <span dir="ltr">&lt;<a href="mailto:agcarver+ale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does anyone know how to jump around in python code the same way that the<br>
percent (%) shortcut can jump between opening and closing braces in<br>
C-like languages?<br>
<br>
For example, if I&#39;m in a long if-else block:<br>
<br>
if foo:<br>
        stuff<br>
        stuff<br>
        stuff<br>
        ...<br>
        stuff<br>
else:<br>
        stuff<br>
        stuff<br>
        stuff<br>
<br>
I want to put the cursor on the else: and jump up to the if: (or the<br>
related top of construct for other types of blocks).  For C-like code:<br>
<br>
if<br>
{<br>
        stuff<br>
        stuff<br>
}<br>
else<br>
{<br>
        stuff<br>
        stuff<br>
}<br>
<br>
I can sit on the braces and bounce between them with just the % key.<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Pete Hardie<br>--------<br>Better Living Through Bitmaps</div>
</div>