Skip to content

Commit

Permalink
Fix run_these_lines() maps
Browse files Browse the repository at this point in the history
  • Loading branch information
wilywampa committed Jul 15, 2016
1 parent 0437e45 commit 292f47d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ftplugin/python/ipy.vim
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ augroup END
noremap <Plug>(IPython-RunFile) :update<CR>:Python2or3 run_this_file()<CR>
noremap <Plug>(IPython-ImportFile) :update<CR>:Python2or3 run_this_file('-n')<CR>
noremap <Plug>(IPython-RunLine) :Python2or3 run_this_line()<CR>
noremap <Plug>(IPython-RunLines) :Python2or3 run_these_lines()<CR>
if has('python3') && get(g:, 'pymode_python', '') !=# 'python'
noremap <Plug>(IPython-RunLines) :python3 run_these_lines()<CR>
else
noremap <Plug>(IPython-RunLines) :python run_these_lines()<CR>
endif
noremap <Plug>(IPython-OpenPyDoc) :Python2or3 get_doc_buffer()<CR>
noremap <Plug>(IPython-UpdateShell) :Python2or3 if update_subchannel_msgs(force=True): echo("vim-ipython shell updated",'Operator')<CR>
noremap <Plug>(IPython-ToggleReselect) :Python2or3 toggle_reselect()<CR>
Expand Down

0 comments on commit 292f47d

Please sign in to comment.