sponsor Vim development Vim logo Vim Book Ad

py_jump.vim : Ultimate % command for python!

 script karma  Rating 53/20, Downloaded by 1390  Comments, bugs, improvements  Vim wiki

created by
Sergiy Matusevych
 
script type
ftplugin
 
description
The title says it all - this script enhances a % command in python to make it jump not only between ([{}]) brackets, but also between start and end of the indented block - just like it does for {} in C++ and perl.

The script also uses some tricks to guess the _beginning_ of the indented block when jumping backwards. Try to use % several times for a deeply nested block to check it out.

Enjoy!
 
install details
Simply rename the file to python.vim and put it into your local ~/.vim/ftplugin/ directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
py_jump.vim 0.1 2005-11-02 6.0 Sergiy Matusevych Initial upload
ip used for rating: 216.73.216.46

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github