下载如下安装包到服务器上:
http://pan.baidu.com/s/1ntph3xJ
rz (选择安装包)
unzip pydiction-master.zip
mv pydiction-master pydiction
mkdir -p ~/.vim/tools/pydictioncp -r pydiction/after ~/.vimcp pydiction/complete-dict ~/.vim/tools/pydiction确保配置文件如下:
# tree ~/.vim
/root/.vim
├── after
│ └── ftplugin
│ └── python_pydiction.vim
└── tools
└── pydiction
└── complete-dict
# cat ~/.vimrcfiletype plugin onlet g:pydiction_location = ‘~/.vim/tools/pydiction/complete-dict‘
syntax on
set nu
在/etc/profile配置文件中加入
export TERM=xterm-color
即可出现Python的自动补全功能!
原文:http://lingjing.blog.51cto.com/9190942/1716944