'When in vi command mode, this causes a switch to emacs editing
mode.'

def init_editing_mode(self, e):

    self._bind_exit_key('Control-d')
    self._bind_exit_key('Control-z')
    self._bind_key('Shift-space', self.self_insert)
    self._bind_key('Control-space', self.self_insert)
    self._bind_key('Return', self.accept_line)
    self._bind_key('Left', self.backward_char)
    self._bind_key('Control-b', self.backward_char)
    self._bind_key('Right', self.forward_char)
    self._bind_key('Control-f', self.forward_char)
    self._bind_key('BackSpace', self.backward_delete_char)
    self._bind_key('Home', self.beginning_of_line)
    self._bind_key('End', self.end_of_line)
    self._bind_key('Delete', self.delete_char)
    self._bind_key('Control-d', self.delete_char)
    self._bind_key('Clear', self.clear_screen)
