前几天在调试PHP源代码时,需要用到gdb,在gdb的终端看代码不是很好,需要用到pyclewn,
但pyclewn 不能通过vbundle安装,于是建了个git仓库,修复了python2.7由于没有asyncio 需要用trollius包来支持的代码@H_404_2@
call vundle#begin() call vundle#end()
之间,就可以使用了,支持
1. python3,自动检测 PATH 环境变量下是否有安装python3
2. python
同时无需通过 pip 安装依赖的包,依赖的包都放在了vbundle的目录下了,
保证了插件独立可用( PYTHONPATH 用到了环境变量 )@H_404_2@
if globpath( substitute($PATH,':',',','g'),'python3' ) != '' " if you had install python3 " ################ for python3 >= 3.4 ###############
let $PYTHONPATH .= vundle#bundle_dir.'/vim_pyclewn/usr/lib64/python3.4/site-packages' " search path for module files
let g:pyclewn_python = 'python3' " python3 version must >= 3.4 else " ################ for python2.7 #################### let $PYTHONPATH .= vundle#bundle_dir.'/vim_pyclewn/usr/lib64/python2.7/site-packages' " search path for module files endif Plugin 'clwu88/vim_pyclewn' " Make pyclewn can be installed though vbundle