diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 1320f71..0ed9e83 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -137,7 +137,8 @@ class TerminalInteractiveShell(InteractiveShell): help="Shortcut style to use at the prompt. 'vi' or 'emacs'.", ).tag(config=True) - emacs_bindings_in_vi_insert_mode = Bool(True, + emacs_bindings_in_vi_insert_mode = Bool( + True, help="Add shortcuts from 'emacs' insert mode to 'vi' insert mode.", ).tag(config=True) diff --git a/IPython/terminal/shortcuts.py b/IPython/terminal/shortcuts.py index 2fd5732..ed35b2a 100644 --- a/IPython/terminal/shortcuts.py +++ b/IPython/terminal/shortcuts.py @@ -90,9 +90,8 @@ def create_ipython_shortcuts(shell): & ~cursor_in_leading_ws ))(display_completions_like_readline) - if sys.platform == 'win32': - kb.add('c-v', filter=(has_focus(DEFAULT_BUFFER) & ~vi_mode))(win_paste) - + if sys.platform == "win32": + kb.add("c-v", filter=(has_focus(DEFAULT_BUFFER) & ~vi_mode))(win_paste) @Condition def ebivim():