Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
foo?
1 parent 094b738 commit ee56141Copy full SHA for ee56141
1 file changed
ftplugin/python/ipy.vim
@@ -425,6 +425,16 @@ def run_this_file():
425
426
@with_subchannel
427
def run_this_line():
428
+ if vim.current.line.strip().endswith('?'):
429
+ # intercept question mark queries -- move to the word just before the
430
+ # question mark and call the get_doc_buffer on it
431
+ w = vim.current.window
432
+ original_pos = w.cursor
433
+ new_pos = (original_pos[0], vim.current.line.index('?')-1)
434
+ w.cursor = new_pos
435
+ get_doc_buffer()
436
+ w.cursor = original_pos
437
+ return
438
msg_id = send(vim.current.line)
439
print_prompt(vim.current.line, msg_id)
440
0 commit comments