I used to have a co-worker who was really good at UNIX.He showed me how to use Vi key bindings to edit my shell commands.  He placed the command in a file that ran every time I logged in.Since then, I've moved to a different project.  Unfortunately I don't remember how to set this up.Is there anyone here who knows how to use Vi key bindings to edit commands in the terminal? How can I make that setting permanent?
Using VI keys to edit shell commands in UNIX
shell;vim;terminal;vi
You're talking about the greatest feature ever!You can use vi commands to edit shell commands (and command history) by adding this to your .bashrc file:set -o viYou can also run that command from the command line to affect only your current session.If you don't use bash, substitue the appropriate rc file for your shell.This allows you to use vi commands to edit any command...You can also use j and k to move through your history (after pressing ESC).You can also use / (after hitting ESC) to search for old commands.In other words, to find that super-long cp command you did ten minutes ago:ESC/cpENTERThen you can cycle through all the matching commands in your history with n and N.All this makes me 10 trillion times more productive at the command line!