Skip to main content
edited tags
Link
Random832
  • 11.2k
  • 2
  • 39
  • 42
Source Link
user86041
user86041

History navigation in Vi mode of Bash shell

When I switch to vi mode in shell (bash or ksh) very useful to me shortcuts such as C-p and C-n to go back and forth in command history disappear. I don't want to rely on Up and Down for that. I don't want to add key bindings every time for every shell. I just want to know if there's alternative native Vi mode commands for navigation in history.


Btw, C-l for clearing screen disappear too, is there a default key binding for clearing the screen in Vi mode?