Linux VIM python 自动补全插件:pydiction

Pydiction 能够是咱们使用Tab键自动补全Python代码在Vim,是一款很是不错的插件。python

Pydiction不须要安装,全部没有任何依赖包问题,Pydiction主要包含三个文件。linux

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.

下载Pydictiongit

mkdir ~/.vim
mkidr ~/.vim/bundle
cd ~/.vim/bundle
#这里咱们也能够本身下载好上传到linux系统中
git clone https://github.com/rkulla/pydiction.git

配置Pydictiongithub

#- UNIX/LINUX/OSX: Put python_pydiction.vim in ~/.vim/after/ftplugin/
#- WINDOWS: Put python_pydiction.vim in C:\vim\vimfiles\ftplugin\
# Assuming you installed Vim to C:\vim\
cp -r ~/.vim/bundle/pydiction/after/ ~/.vim

新建.vimrc文件vim

vim ~/.vimrc

在.vimrc文件添加以下配置:bash

filetype plugin on
let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'
let g:pydiction_menu_height = 3

到此已经可使用Tab键自动补全python代码了。插件

相关文章
相关标签/搜索