If you want to understand the actual application solution of Python VIM environment configuration, you can click our article to introduce the functions and related skills of Python VIM environment configuration, I hope you will gain some benefits when browsing the following articles. The following is a description of the article.
1. VIM python auto-completion plug-in:
Pydiction this is a pretty good script automatically completed by Python code. The following python code can be automatically completed: simple python keyword completion
Applicable to Versions later than VIM7.
1. python_pydiction.vim
Change the file
- python_pydiction.vim
Put in
- ~/.vim/after/ftplugin/
If the path does not exist, you can create the folder structure by yourself. In a directory similar to that in Windows ). The above content is an example of the path code in the Python VIM environment configuration.
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
- ~/.vim/tools/pydiction/complete-dict
3. Configure the. vimrc file in ~ /Add the following configuration to the vimrc file:
- "pydiction 1.2 python auto completefiletype
plugin onlet g:pydiction_location = '~/.vim/
tools/pydiction/complete-dict'"defalut g:pydiction_
menu_height == 15"let g:pydiction_menu_height = 20
The above content introduces the actual operations of the Python VIM environment configuration.