Python auto-completion in VIM

Source: Internet
Author: User

This is a pretty good PythonCodeAutomatically completed scripts.

The following Python code can be automatically completed:

    1. Simple Python keyword completion
    2. Python function completion with parentheses
    3. Python module completion
    4. Functions in the python module and variable completion
    5. From module import sub-module completion
Pydiction

Installation and configuration after Version 1.0

Applicable to Versions later than vim7.

1. python_pydiction.vim

Put the file python_pydiction.vim ~ /. Vim/after/ftplugin/path. If the path does not exist, you can create the folder structure by yourself. (In Windows, put the contents in a similar structure)

2. Complete-dict

Put the complete-dict file in a path of your own, and the subsequent configuration will use this file. This file is used to record all Python keywords.

I put this file in ~ /. Vim/tools/Pydiction

/Complete-dict

3. Configure the. vimrc File

In ~ /Add the following configuration to the vimrc file:

"Pydiction 1.2 Python auto complete <br/> filetype plugin on <br/> Let G: pydiction_location = '~ /. Vim/tools/pydiction/complete-dict '<br/> "defalut G: pydiction_menu_height = 15 <br/> Let G: pydiction_menu_height = 20

 

You can use <tab> to automatically complete the task.

Reprinted from: http://www.pythonclub.org/linux/vim/pydiction

 

 

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.