def load_vi_open_in_editor_bindings(registry, filter=None):
    navigation_mode = InViMode(InputMode.NAVIGATION) & ~ filters.HasSelection()
    handle = create_handle_decorator(registry, filter)

    @handle('v', filter=navigation_mode)
    def _(event):
        event.current_buffer.open_in_editor(event.cli)
Pressing 'v' in navigation mode will open the buffer in an external editor.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/key_binding/bindings/vi.py/load_vi_open_in_editor_bindings