set -o vi
puts you into vi mode.
set -o emacs
puts you back into emacs mode.
In vi mode, hit esc to get into command mode then:
h Move cursor left
l Move cursor right
A Move cursor to end of line and put in insert mode
0(zero) Move cursor to beginning of line (doesn't put in insert mode)
i Put into insert mode at current position
a Put into insert mode after current position
dd Delete line (saved for pasting)
D Delete text after current cursor position (saved for pasting)
p Paste text that was deleted
j Move up through history commands
k Move down through history commands
u Undo
Ещё видео!