you can run
bash -o vi
or
ksh -o vi
depending on your shell.
after that just to esc+k (press 'k' key and hold it there) will recall all the commands.
Beware tho, if more than one person logging on using same unix id running commands and trying esc+k at the same time, before you 'enter' make sure you look carefully first. example
You run ls -l as root in /
Your friend in maybe /export/home runs command rm -r *
you esc+k and press enter key without looking you may end up running rm -r * in / and you're big dodo
also try pressing esc+j and see what happens