[ vi ] readline vi mode

Signed-off-by: Unknown <dev@null>
This commit is contained in:
Unknown 2022-05-09 20:10:51 +02:00
parent c3a29f735a
commit a59f19e9cf

View File

@ -68,19 +68,23 @@ set -o vi
ESC ESC
# change to vi edit mode (when set -o vi is set) # change to vi edit mode (when set -o vi is set)
k k
# in vi edit mode - previous command # in vi edit mode - go back to 3 previous words
j j
# in vi edit mode - next command # in vi edit mode - next command
0 0
# in vi edit mode - beginning of the command # in vi edit mode - beginning of the command
R R
# in vi edit mode - replace current characters of command # in vi edit mode - replace current characters of command
w 2w
# in vi edit mode - next word # in vi edit mode - next to 2nd word
b b
# in vi edit mode - previous word # in vi edit mode - previous word
i
# in vi edit mode - go to insert mode
v v
# in vi edit mode - edit current command in vi # in vi edit mode - edit current command in vi
man 3 readline
# man page for complete readline mapping
``` ```
##### Run history number (e.g. 53) ##### Run history number (e.g. 53)