From 1d29ae78476cb7943f826a1d3f9c58091e6d7bb0 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 10 Jan 2023 20:36:59 +0100 Subject: [PATCH] docs: Document more vi-mode bindings These are quite incomplete and need more work. --- doc_src/interactive.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index 39eef2d05..c487f372c 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -449,6 +449,10 @@ Command mode is also known as normal mode. - :kbd:`Shift`\ +\ :kbd:`A` enters :ref:`insert mode ` at the end of the line. +- :kbd:`o` inserts a new line under the current one and enters :ref:`insert mode ` + +- :kbd:`O` (capital-"o") inserts a new line above the current one and enters :ref:`insert mode ` + - :kbd:`0` (zero) moves the cursor to beginning of line (remaining in command mode). - :kbd:`d`\ +\ :kbd:`d` deletes the current line and moves it to the :ref:`killring`. @@ -458,6 +462,7 @@ Command mode is also known as normal mode. - :kbd:`p` pastes text from the :ref:`killring`. - :kbd:`u` undoes the most recent edit of the command line. +- :kbd:`Control`\ +\ :kbd:`R` redoes the most recent edit. - :kbd:`[` and :kbd:`]` search the command history for the previous/next token containing the token under the cursor before the search was started. See the :ref:`history ` section for more information on history searching. @@ -465,6 +470,10 @@ Command mode is also known as normal mode. - :kbd:`Backspace` moves the cursor left. +- :kbd:`g` / :kbd:`G` moves the cursor to the beginning/end of the commandline, respectively. + +- :kbd:`:q` exits fish. + .. _vi-mode-insert: Insert mode