mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
[ vi ] readline vi mode
Signed-off-by: Unknown <dev@null>
This commit is contained in:
parent
c3a29f735a
commit
a59f19e9cf
10
README.md
10
README.md
@ -68,19 +68,23 @@ set -o vi
|
||||
ESC
|
||||
# change to vi edit mode (when set -o vi is set)
|
||||
k
|
||||
# in vi edit mode - previous command
|
||||
# in vi edit mode - go back to 3 previous words
|
||||
j
|
||||
# in vi edit mode - next command
|
||||
0
|
||||
# in vi edit mode - beginning of the command
|
||||
R
|
||||
# in vi edit mode - replace current characters of command
|
||||
w
|
||||
# in vi edit mode - next word
|
||||
2w
|
||||
# in vi edit mode - next to 2nd word
|
||||
b
|
||||
# in vi edit mode - previous word
|
||||
i
|
||||
# in vi edit mode - go to insert mode
|
||||
v
|
||||
# in vi edit mode - edit current command in vi
|
||||
man 3 readline
|
||||
# man page for complete readline mapping
|
||||
```
|
||||
|
||||
##### Run history number (e.g. 53)
|
||||
|
Loading…
Reference in New Issue
Block a user