1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Fix vim8 python3 support in windows

use PYTHON3_HOST_PROG for python3
This commit is contained in:
Shidong Wang 2020-05-31 21:23:51 +08:00
parent 2f87f1367f
commit 337bc6f765

View File

@ -21,6 +21,13 @@ if has('vim_starting')
endif
if !empty($PYTHON3_HOST_PROG)
let g:python3_host_prog = $PYTHON3_HOST_PROG
if !has('nvim')
\ && (has('win16') || has('win32') || has('win64'))
\ && exists('&pythonthreedll')
\ && exists('&pythonthreehome')
let &pythonthreedll = get(split(globpath(fnamemodify($PYTHON3_HOST_PROG, ':h'), 'python*.dll'), '\n'), -1, '')
let &pythonthreehome = fnamemodify($PYTHON3_HOST_PROG, ':h')
endif
endif
endif
" Detect root directory of SpaceVim