[ale] Vim jumps with python code

Pete Hardie pete.hardie at gmail.com
Wed Jan 7 09:21:30 EST 2015


THis might be useful:
http://stackoverflow.com/questions/896145/more-efficient-movements-editing-python-files-in-vim

On Sat, Jan 3, 2015 at 5:10 PM, Alex Carver <agcarver+ale at acarver.net>
wrote:

> 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.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
Pete Hardie
--------
Better Living Through Bitmaps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150107/9d08a459/attachment.html>


More information about the Ale mailing list