One, vim python automatic completion plug-in: pydiction
You can implement the following Python code auto-completion:
1. Simple python keyword completion
2.python function Completion with parentheses
3.python Module Completion
4.python module internal function, variable completion
5.from Module Import sub-module complement
Plugin Address: https://github.com/rkulla/pydiction
wget Https://github.com/rkulla/pydiction/archive/master.zip
Yum Install-y Unzip Tree
Unzip-q Master
MV Pydiction-master Pydiction
Mkdir-p ~/.vim/tools/pydiction
Cp-r Pydiction/after ~/.vim
CP Pydiction/complete-dict ~/.vim/tools/pydiction
# Tree ~/.vim
/root/.vim
├──after
│└──ftplugin
│└──python_pydiction.vim
└──tools
└──pydiction
└──complete-dict
Create a ~/.VIMRC to make sure the contents are as follows:
[Ceo-xsec ~]# Cat ~/.VIMRC
FileType plugin on
Let g:pydiction_location = ' ~/.vim/tools/pydiction/complete-dict '
Then create a. py file test to
Automatic completion of VIM Python code under Linux