diff --git a/config/main.vim b/config/main.vim index c99497ef5..16ad3c849 100644 --- a/config/main.vim +++ b/config/main.vim @@ -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