Taken from: https://stackoverflow.com/questions/10394302/how-do-i-use-vi-keys-in-ipython-under-nix
Create a new profile with ipython profile create
, then edit it (~/.ipython/profile_default/ipython_config.py
) and modify as bellow:
c.TerminalInteractiveShell.editing_mode = 'vi'
c.TerminalInteractiveShell.editor = u'nvim'
c.TerminalInteractiveShell.extra_open_editor_shortcuts = True