Pythonのvim作成python自動補完
Pydiction:vim-python自動補完プラグイン
プラグインのインストールは次のとおりです.
1.プラグインパッケージのダウンロード
2.構成
3.pythonファイルテストの作成
import datetimedatetimedatetime /root/.vim/after/ftplugin/pydiction/complete-dict datetime.MAXYEAR /root/.vim/after/ftplugin/pydiction/complete-dict datetime.MINYEAR /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__doc__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__file__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__name__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__package__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.date( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.datetime( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.datetime_CAPI /root/.vim/after/ftplugin/pydiction/complete-dict datetime.time( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.timedelta( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.tzinfo( /root/.vim/after/ftplugin/pydiction/complete-dict date( /root/.vim/after/ftplugin/pydiction/complete-dict datetime( /root/.vim/after/ftplugin/pydiction/complete-dict ~ ~
本文は“浪淘沙”のブログから出て、転載をお断りします!
プラグインのインストールは次のとおりです.
1.プラグインパッケージのダウンロード
https://github.com/vim-scripts/Pydiction
, git
[root@localhost ~]# mkdir zhu
[root@localhost ~]# cd zhu
[root@localhost zhu]# git clone https://github.com/rkulla/pydiction.git
#####################
python_pydiction.vim #vim
complete-dict #python ,
pydiction.py #python ,
2.構成
#1. .vim , 。
mkdir -p ~/.vim/after/ftplugin/pydiction
#2.
mv python_pydiction.vim ~/.vim/after/ftplugin/
mv complete-dict pydiction.py ~/.vim/after/ftplugin/pydiction/
#3. ~/.vimrc , , 。
filetype plugin on
let g:pydiction_location='~/.vim/after/ftplugin/pydiction/complete-dict'
3.pythonファイルテストの作成
import datetimedatetimedatetime /root/.vim/after/ftplugin/pydiction/complete-dict datetime.MAXYEAR /root/.vim/after/ftplugin/pydiction/complete-dict datetime.MINYEAR /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__doc__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__file__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__name__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.__package__ /root/.vim/after/ftplugin/pydiction/complete-dict datetime.date( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.datetime( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.datetime_CAPI /root/.vim/after/ftplugin/pydiction/complete-dict datetime.time( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.timedelta( /root/.vim/after/ftplugin/pydiction/complete-dict datetime.tzinfo( /root/.vim/after/ftplugin/pydiction/complete-dict date( /root/.vim/after/ftplugin/pydiction/complete-dict datetime( /root/.vim/after/ftplugin/pydiction/complete-dict ~ ~
本文は“浪淘沙”のブログから出て、転載をお断りします!