1、vim python自动补全插件:pydictionphp
能够实现下面python代码的自动补全:python
1.简单python关键词补全
2.python 函数补全带括号
3.python 模块补全
4.python 模块内函数,变量补全
5.from module import sub-module 补全git
想为vim启动自动补全须要下载插件,地址以下:github
http://vim.sourceforge.net/scripts/script.php?script_id=850
https://github.com/rkulla/pydictionvim
安装配置:bash
git clone https://github.com/rkulla/pydiction.git 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
建立~/.vimrc,确保其中内容以下:spa
# cat ~/.vimrc filetype plugin on let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'