Pydiction is used to implement the code completion and syntax hints function. Pydiction cannot be installed via apt and needs to be downloaded and installed by itself.
git clone https://github.com/rkulla/pydiction #https://github.com/ma6174/vim look at someone.
Pydiction allows vim to automatically complement Python code, whether it's a keyword, a standard library, or a third-party library. It consists mainly of 3 files:
Python_pydiction.vim:vim plugin file. Complete-dict: A dictionary file that contains the Python keywords and modules. The content referenced by the plug-in is derived from this. pydiction.py: A PY script that runs this file can add new modules to the Complete-dict dictionary.
Linux/unix System:
[email protected]:~$ tree-l 4 ~/.vim/after/ /home/mologa/.vim/after/ ├──complete-dict ├──ftplugin │ └──pyt Hon_pydiction.vim ├──plugin │ └──snipmate.vim └──pydiction.py
Vim Install plugin EQ:
1. First write the plugin you want to install into ~/.VIMRC 2. Open Vim, if you have a plugin that is not installed in VIMRC, it will prompt! 3. ':P Lugininstall ' Enter to wait for installation echo "Plugin ' Valloric/youcompleteme '" >>~/.VIMRC open Vim--- : Plugininstall After the installation is complete, the directory generates files ~/.vim/vundle/youcompleteme the path to add the configuration file in ~/.VIMRC let G:ycm_global_ycm_extra_ conf= ' ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py '
But I didn't use ' youcompleteme ' and it took too long, so I chose to install ' Pydiction ' later.
Reference: Http://www.cnblogs.com/Suzzz
Ubuntu Configuration Vim Editor