Skip to content

Commit 7b9528c

Browse files
committed
Merge pull request #23 from koepsell/master
Exit gracefully in case python is not available.
2 parents 443e26b + 4236607 commit 7b9528c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ftplugin/python/ipy.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
" (or :IPythonXSelection if you're using X11 without having to copy)
1717
"
1818
" written by Paul Ivanov (http://pirsquared.org)
19+
if !has('python')
20+
" exit if python is not available.
21+
finish
22+
endif
1923
python << EOF
2024
reselect = False # reselect lines after sending from Visual mode
2125
show_execution_count = True # wait to get numbers for In[43]: feedback?

0 commit comments

Comments
 (0)