Skip to content

Commit 1a5ca84

Browse files
committed
Merge pull request #25 from mrterry/master
Activate completion *after* ipython connection
2 parents 7b9528c + 6f2473f commit 1a5ca84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ftplugin/python/ipy.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def km_from_string(s=''):
107107
return
108108
km.start_channels()
109109
send = km.shell_channel.execute
110+
111+
# now that we're connect to an ipython kernel, activate completion machinery
112+
vim.command('set completefunc=CompleteIPython')
110113
return km
111114

112115
def echo(arg,style="Question"):
@@ -522,4 +525,3 @@ endpython
522525
return res
523526
endif
524527
endfun
525-
set completefunc=CompleteIPython

0 commit comments

Comments
 (0)