From 7fbf4b44642a7b76a258cefc888223089f873d7e Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Sat, 7 Nov 2026 00:06:28 +0300 Subject: [PATCH] Prefer Python 3 over Python 2 in the fallback When falling back to Python, check for Python 3 presence first. This avoids pulling Python 2 at all when Python 3 is available. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 9a0d884..9bbb684 100644 --- a/plug.vim +++ b/plug.vim @@ -1196,7 +1196,7 @@ function! s:update_impl(pull, force, args) abort endif let use_job = s:nvim || s:vim8 - let python = !use_job && (has('python') || has('python3')) + let python = !use_job && (has('python3') || has('python')) let ruby = !use_job && (v:version >= 703 || v:version == 702 && has('patch374')) && !(s:is_win && has('gui_running')) && threads > 1 && has('ruby') && s:check_ruby() let s:update = {