@register(u'vi-editing-mode')
def vi_editing_mode(event):
 event.cli.editing_mode = EditingMode.VI

@ register ( u'vi-editing-mode' ) def vi_editing_mode ( event ) : event . cli . editing_mode = EditingMode . VI
switch to vi editing mode .