L120: Linux System Administration II

If your EDITOR environment variable is set to vi or you use the set -o vi command, you can edit previous commands using many of the standard vi editing commands. To enter edit mode, press Esc. You can now scroll through the lines of your history file using the vi movement keys (h-j-k-l). ................
................