Skip to content

Commit 6cfc463

Browse files
authored
Merge pull request #415 from macvim-dev/fix/py3
Set Python3 settings automatically
2 parents c85f864 + 031dd64 commit 6cfc463

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)