vim python自動補全外掛:pydiction
阿新 • • 發佈:2018-12-21
vim python自動補全外掛:pydiction
可以實現下面python程式碼的自動補全:
1.簡單python關鍵詞補全
2.python 函式補全帶括號
3.python 模組補全
4.python 模組內函式,變數補全
5.from module import sub-module 補全
外掛地址:https://github.com/rkulla/pydiction
wget https://github.com/rkulla/pydiction/archive/master.zip
yum install -y unzip tree
unzip -q master
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
建立~/.vimrc,確保其中內容如下:
[[email protected] ~]# cat ~/.vimrc
filetype plugin on
let g:pydiction_location = ‘~/.vim/tools/pydiction/complete-dict’