Skip to content

Commit

Permalink
Only overwrite the pythonthreedll and pythonthreehome on macOS
Browse files Browse the repository at this point in the history
The old config has not support the CentOS 7.3.1611.
  • Loading branch information
chusiang committed Mar 19, 2018
1 parent 8f484ed commit f39ba33
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
" Support the Python 3
" --------------------

if has('python3')
command! -nargs=1 Py py3 <args>
set pythonthreedll=/usr/local/Frameworks/Python.framework/Versions/3.6/Python
set pythonthreehome=/usr/local/Frameworks/Python.framework/Versions/3.6
else
command! -nargs=1 Py py <args>
set pythondll=/usr/local/Frameworks/Python.framework/Versions/2.7/Python
set pythonhome=/usr/local/Frameworks/Python.framework/Versions/2.7
if has('mac')
if has('python3')
command! -nargs=1 Py py3 <args>
set pythonthreedll=/usr/local/Frameworks/Python.framework/Versions/3.6/Python
set pythonthreehome=/usr/local/Frameworks/Python.framework/Versions/3.6
else
command! -nargs=1 Py py <args>
set pythondll=/usr/local/Frameworks/Python.framework/Versions/2.7/Python
set pythonhome=/usr/local/Frameworks/Python.framework/Versions/2.7
endif
endif


Expand Down

0 comments on commit f39ba33

Please sign in to comment.