Pydiction 能够是咱们使用Tab键自动补全Python代码在Vim,是一款很是不错的插件。html
Pydiction不须要安装,全部没有任何依赖包问题,Pydiction主要包含三个文件。python
1
2
3
|
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.
|
下载Pydictionlinux
1
2
3
4
5
|
mkdir
~/.vim
mkidr ~/.vim
/bundle
cd
~/.vim
/bundle
这里咱们能够本身下载好上传到linux系统中
git clone https:
//github
.com
/rkulla/pydiction
.git
|
配置Pydictiongit
1
2
3
4
|
#- 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文件github
1
|
vim ~/.vimrc
|
在.vimrc文件添加以下配置:vim
1
2
3
|
filetype plugin on
let g:pydiction_location =
'~/.vim/tools/pydiction/complete-dict'
let
g:pydiction_menu_height = 3
|
注意下划线标注的项最好使用find命令在本地查询一下省得弄错bash
重启系统完成后就能够使用Tab键自动补全python代码了。spa
转:http://www.cnblogs.com/rampb/p/6183076.html插件