Skip to main content
added 1 character in body
Source Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k

The default key-bindings for moving up or owndown in the command history in all shells that I know of that supports Vi key-bindings is k for the previous command and j for the next command.

These are the same as the corresponding movement commands in the Vi editor.

For them to work, you will have to be in "normal" mode, i.e. you have to press Esc once.

To clear the screen, use the command clear.

The default key-bindings for moving up or own in the command history in all shells that I know of that supports Vi key-bindings is k for the previous command and j for the next command.

These are the same as the corresponding movement commands in the Vi editor.

For them to work, you will have to be in "normal" mode, i.e. you have to press Esc once.

To clear the screen, use the command clear.

The default key-bindings for moving up or down in the command history in all shells that I know of that supports Vi key-bindings is k for the previous command and j for the next command.

These are the same as the corresponding movement commands in the Vi editor.

For them to work, you will have to be in "normal" mode, i.e. you have to press Esc once.

To clear the screen, use the command clear.

Source Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k

The default key-bindings for moving up or own in the command history in all shells that I know of that supports Vi key-bindings is k for the previous command and j for the next command.

These are the same as the corresponding movement commands in the Vi editor.

For them to work, you will have to be in "normal" mode, i.e. you have to press Esc once.

To clear the screen, use the command clear.