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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user