下载如下安装包到服务器上:
http://pan.baidu.com/s/1ntph3xJ
rz (选择安装包)
unzip pydiction-master.zip
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
# cat ~/.vimrc
filetype plugin on
let
g:pydiction_location = '
~/.vim/tools/pydiction/complete-dict'
syntax on
set nu
在/etc/profile配置文件中加入
export TERM=xterm-color
即可出现Python的自动补全功能!