Monday, August 2, 2010

Easier Python source code navigation in vim

Download the Python.vim script

Copy the script to the correct dir.
mkdir ~/.vim
mkdir ~/.vim/ftplugin
mv python.vim ~/.vim/ftplugin/

Add the below lines in ~/.vimrc file
filetype plugin on
syntax on

Use "[[" to go to beginning of block(class/function), "]]" to go to end of block. See the script for more info.

1 comment:

SmartKid said...

This works for C/C++ code as well