Tuesday, January 5, 2010

Get Auto-Complete feature in VIM for python

Ever felt like using an IDE for python scripting but didnt want to leave your favourite VIM EDITOR.. Here is the solution to get auto-completion in VIM.

Goto this link and download this plugin..

See if this location exists: ~/.vim/after/ftplugin

If not, create that folder..

Now, open ~/.vimrc file and add the following lines....

filetype plugin on
let g:pydiction_location = '~/.vim/after/ftplugin/pydiction-1.2/complete-dict'
let g:pydiction_menu_height = 20

Next time you edit a *.py file using vim, auto-completion feature will be enabled.
Feel free to explore more plugins too.. There are many more interesting plugins/

No comments:

Post a Comment