summaryrefslogtreecommitdiff
path: root/runtime/optwin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-31 21:49:05 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-31 21:49:05 +0100
commit94073167e3aa8cbe18380e93a2fc8e8165438cc8 (patch)
tree2e7c3078ffc53518b95979a118b16403699381ae /runtime/optwin.vim
parent1dd45fb4f3371f0256653b2186c8b4b3d26b3f41 (diff)
downloadvim-git-94073167e3aa8cbe18380e93a2fc8e8165438cc8.tar.gz
patch 8.0.1451: difficult to set the python home directories properlyv8.0.1451
Problem: It is difficult to set the python home directory properly for Python 2.7 and 3.5 since both use $PYTHONHOME. Solution: Add the 'pythonhome' and 'pythonthreehome' options. (Kazuki Sakamoto, closes #1266)
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r--runtime/optwin.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim
index 74ebc9fd9..a417295fd 100644
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -1354,10 +1354,18 @@ if exists("&pythondll")
call append("$", "pythondll\tname of the Python 2 dynamic library")
call <SID>OptionG("pythondll", &pythondll)
endif
+if exists("&pythonhome")
+ call append("$", "pythonhome\tname of the Python 2 home directory")
+ call <SID>OptionG("pythonhome", &pythonhome)
+endif
if exists("&pythonthreedll")
call append("$", "pythonthreedll\tname of the Python 3 dynamic library")
call <SID>OptionG("pythonthreedll", &pythonthreedll)
endif
+if exists("&pythonthreehome")
+ call append("$", "pythonthreehome\tname of the Python 3 home directory")
+ call <SID>OptionG("pythonthreehome", &pythonthreehome)
+endif
if exists("&rubydll")
call append("$", "rubydll\tname of the Ruby dynamic library")
call <SID>OptionG("rubydll", &rubydll)