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?
vi bindings in the shell
are the greatest feature ever invented! – jahroy Jul 13 '12 at 19:01jj
withESC
as we usually do in vim ? – steveyang Jul 20 '12 at 04:55jj
to behave the same as pressingESC
. – steveyang Jul 20 '12 at 05:36set -o vi
make this settings ineffective. How can I make them work? (In particular I would like to usej
andk
in place of down and up arrows.) – Enlico Oct 07 '16 at 06:57