This is a pretty good PythonCodeAutomatically completed scripts.
The following Python code can be automatically completed:
- Simple Python keyword completion
- Python function completion with parentheses
- Python module completion
- Functions in the python module and variable completion
- 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