mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
docs: Document more vi-mode bindings
These are quite incomplete and need more work.
This commit is contained in:
parent
905f788b3e
commit
1d29ae7847
1 changed files with 9 additions and 0 deletions
|
@ -449,6 +449,10 @@ Command mode is also known as normal mode.
|
|||
|
||||
- :kbd:`Shift`\ +\ :kbd:`A` enters :ref:`insert mode <vi-mode-insert>` at the end of the line.
|
||||
|
||||
- :kbd:`o` inserts a new line under the current one and enters :ref:`insert mode <vi-mode-insert>`
|
||||
|
||||
- :kbd:`O` (capital-"o") inserts a new line above the current one and enters :ref:`insert mode <vi-mode-insert>`
|
||||
|
||||
- :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 <history-search>` 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
|
||||
|
|
Loading…
Reference in a new issue