aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/provider
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2015-05-02 21:14:41 +0200
committerFlorian Walch <florian@fwalch.com>2015-06-09 10:29:45 +0300
commit12f7229e7eef016baa8d9d959f78fc7f351b48fb (patch)
treead1c7cb674d6866d52da4a3c10119ac708432447 /runtime/autoload/provider
parent6fa10ab9cb77fb96f414b3fe6b19b25552e4f6a2 (diff)
downloadrneovim-12f7229e7eef016baa8d9d959f78fc7f351b48fb.tar.gz
rneovim-12f7229e7eef016baa8d9d959f78fc7f351b48fb.tar.bz2
rneovim-12f7229e7eef016baa8d9d959f78fc7f351b48fb.zip
provider/pythonx: test python3/2 first, do not test python3.2
python3/python2 will typically point at the default / most recent interpreter.
Diffstat (limited to 'runtime/autoload/provider')
-rw-r--r--runtime/autoload/provider/pythonx.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim
index 5daa68fa5c..74a9933f09 100644
--- a/runtime/autoload/provider/pythonx.vim
+++ b/runtime/autoload/provider/pythonx.vim
@@ -18,8 +18,8 @@ function! provider#pythonx#Detect(ver) abort
endif
let detect_versions = (a:ver == 2) ?
- \ ['2.7', '2.6', '2', '']
- \ : ['3.5', '3.4', '3.3', '3.2', '3', '']
+ \ ['2', '2.7', '2.6', '']
+ \ : ['3', '3.5', '3.4', '3.3', '']
for prog in map(detect_versions, "'python' . v:val")
let [check, err, ver] = s:check_interpreter(prog, a:ver, skip)