一、克隆代码
mkdir -p ~/.vim/tools
cd ~/.vim/tools
git clone https://github.com/rkulla/pydiction.git
二、配置Pydiction
- UNIX/LINUX/OSX: Put python_pydiction.vim in ~/.vim/after/ftplugin/
- WINDOWS: Put python_pydiction.vim in C:vimvimfilesftplugin\
Assuming you installed Vim to C:vim\
cp -r ~/.vim/tools/pydiction/after/ ~/.vim
三、编辑.vimrc文件
vim ~/.vimrc
在.vimrc文件添加如下配置:
filetype plugin on
let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'
let g:pydiction_menu_height = 3
四、重启