Prefer Python 3 in the Vim plugin (#2124)

Python 2 is EOL, so it makes more sense to use Python 3 as the preferred version of Python rather than just fall back on it.
This commit is contained in:
Thom Wiggers 2020-09-26 10:50:51 +02:00 committed by GitHub
parent ff629c388e
commit 40c3e092b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,14 +26,14 @@ if exists('g:powerline_pycmd')
let s:pyeval = g:powerline_pyeval
let s:has_python = 1
endif
elseif has('python')
let s:has_python = 1
let s:pycmd = 'py'
let s:pyeval = get(g:, 'powerline_pyeval', 'pyeval')
elseif has('python3')
let s:has_python = 1
let s:pycmd = 'py3'
let s:pyeval = get(g:, 'powerline_pyeval', 'py3eval')
elseif has('python')
let s:has_python = 1
let s:pycmd = 'py'
let s:pyeval = get(g:, 'powerline_pyeval', 'pyeval')
else
let s:has_python = 0
endif