Set Python3 settings automatically

Supports
- Homebrew Python3 (Default)
- https://www.python.org/downloads/mac-osx/
This commit is contained in:
Kazuki Sakamoto
2016-11-20 22:11:00 -08:00
parent c85f864c35
commit 031dd64ad7
+10
View File
@@ -13,3 +13,13 @@ set backspace+=indent,eol,start
" the entire MacVim menu is set up in a nib file which currently only is
" translated to English).
set langmenu=none
" Python3
if has('python3') && !filereadable(&pythonthreedll)
" https://www.python.org/downloads/mac-osx/
if filereadable("/Library/Frameworks/Python.framework/Versions/3.5/Python")
let $PYTHONHOME="/Library/Frameworks/Python.framework/Versions/3.5"
set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.5/Python
endif
endif