Enable Python plug-in VIM

Source: Internet
Author: User
Tags autoload

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.