mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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:
parent
ff629c388e
commit
40c3e092b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user