GVIM配置,PYTHON IDE

GVIM  插件:

Pydiction : Tab-complete your Python code 

1.下载

2.Put python_pydiction.vim in C:\vim\vimfiles\ftplugin\ 

3._VIMRC配置:
 filetype plugin on 

let g:pydiction_location = '/path/to/complete-dict' ”修改成自己的目录

GVIM一键编译运行:

       autocmd BufRead *.py nmap :!python % “先查看PYTHON环境变量是否已经配置好


其他配置:

set guioptions-=m
set guioptions-=T“关闭菜单和工具栏

"中文支持:

if has("multi_byte") 
    " UTF-8 编码 
    set encoding=utf-8 
    set termencoding=utf-8 
    set formatoptions+=mM 
    set fencs=utf-8,gbk 
    if v:lang =~? '^/(zh/)/|/(ja/)/|/(ko/)' 
        set ambiwidth=double 
    endif 
    if has("win32") 
        source $VIMRUNTIME/delmenu.vim 
        source $VIMRUNTIME/menu.vim 
        language messages zh_CN.utf-8 
    endif 
else 
    echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte" 
endif

你可能感兴趣的:(python)