Take my Ubuntu 12.10 As an example. After Vim is installed, the python plug-in is provided.
ls /usr/share/vim/vim73/autoload/adacomplete.vim netrwFileHandlers.vim sqlcomplete.vimada.vim netrwSettings.vim syntaxcomplete.vimccomplete.vim netrw.vim tar.vimcsscomplete.vim paste.vim tohtml.vimdecada.vim phpcomplete.vim vimball.vimgetscript.vim python3complete.vim xmlgnat.vim pythoncomplete.vim xmlcomplete.vimgzip.vim README.txt zip.vimhtmlcomplete.vim rubycomplete.vimjavascriptcomplete.vim spellfile.vim
If no, download pythoncomplete. vim and copy it to the autoload directory.
In ~ /. Add the following two lines to vimrc:/etc/Vim/vimrc in Ubuntu
filetype plugin onautocmd FileType python set omnifunc=pythoncomplete#Complete
In this case, the installation and configuration are completed.
Open vim, press Ctrl + X, CTRL + O, and you will be able to see the prompt list box and the corresponding docstring.
In addition, idle is indeed a very useful editor.
Reference
Http://www.cnblogs.com/samwei/archive/2011/04/25/2026211.html
Http://zhongwei-leg.iteye.com/blog/941474