Skip to content

Commit 031dd64

Browse files
committed
Set Python3 settings automatically
Supports - Homebrew Python3 (Default) - https://www.python.org/downloads/mac-osx/
1 parent c85f864 commit 031dd64

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/MacVim/vimrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ set backspace+=indent,eol,start
1313
" the entire MacVim menu is set up in a nib file which currently only is
1414
" translated to English).
1515
set langmenu=none
16+
17+
" Python3
18+
if has('python3') && !filereadable(&pythonthreedll)
19+
" https://www.python.org/downloads/mac-osx/
20+
if filereadable("/Library/Frameworks/Python.framework/Versions/3.5/Python")
21+
let $PYTHONHOME="/Library/Frameworks/Python.framework/Versions/3.5"
22+
set pythonthreedll=/Library/Frameworks/Python.framework/Versions/3.5/Python
23+
endif
24+
endif
25+

0 commit comments

Comments
 (0)