any shell or hack that makes the shell command line take vi commands?

If it doesn't fit in another category, ask it here.
Post Reply
marqul
Posts: 1
Joined: 2012/05/30 23:55:50

any shell or hack that makes the shell command line take vi commands?

Post by marqul » 2012/05/31 00:01:21

basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command

i'd like to use vim style key shortcuts while on the command line so that a 55[left arrow key] moves the cursor 55 places to the left...

and i want all the other vi goodies, search of history maybe - a dream?, replace, etc

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

any shell or hack that makes the shell command line take vi

Post by TrevorH » 2012/05/31 00:34:14

[code]
set -o vi
[/code]

To set it back use set -o emacs

Post Reply