美文网首页
vim 添加Python 自动补全

vim 添加Python 自动补全

作者: 高巨龙 | 来源:发表于2018-03-26 18:40 被阅读251次

安装配置:

wget https://github.com/rkulla/pydiction/archive/master.zip

unzip -q master

mv pydiction-master pydiction

mkdir -p ~/.vim/tools/pydiction

cp -r pydiction/after ~/.vim

cp pydiction/complete-dict ~/.vim/tools/pydiction

创建~/.vimrc,确保其中内容如下:

# cat ~/.vimrc

filetype plugin on

let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'

用vim编辑一个py文件,import TAB 

相关文章

网友评论

      本文标题:vim 添加Python 自动补全

      本文链接:https://www.haomeiwen.com/subject/sqzrcftx.html