1 Pydiction主要包含三個文件:
python_pydiction.vim -- Vim plugin that autocompletes Python code.
complete-dict -- Dictionary file of Python keywords, modules, etc.
pydiction.py -- Python script to add more words to complete-dict.
2 下載 Pydiction
mkdir ~/.vim/bundle -p
cd ~/.vim/bundlegit clone https://github.com/rkulla/pydiction.git
3 配置Pydiction
cp -r ~/.vim/bundle/pydiction/after/ ~/.vim
4 配置vimrc
vi ~/.vim/vimrc
filetype plugin on
let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
let g:pydiction_menu_height = 3
set ts=4