Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff95771

Browse files
committed
Merge pull request #72 from marcel-wolf/master
invoke IPython's run magic as %run instead of run
2 parents 7e948b1 + 774e341 commit ff95771

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ftplugin/python/ipy.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ def with_subchannel(f,*args):
431431

432432
@with_subchannel
433433
def run_this_file():
434-
msg_id = send('run %s %s' % (run_flags, repr(vim.current.buffer.name),))
435-
print_prompt("In[]: run %s %s" % (run_flags, repr(vim.current.buffer.name)),msg_id)
434+
msg_id = send('%%run %s %s' % (run_flags, repr(vim.current.buffer.name),))
435+
print_prompt("In[]: %%run %s %s" % (run_flags, repr(vim.current.buffer.name)),msg_id)
436436

437437
@with_subchannel
438438
def run_this_line():

0 commit comments

Comments
 (0)