Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to use bash vi mode by issuing "set -o vi" but I am facing two issues; first many of the vi commands are not working and second once I am in the command mode by pressing the Esc key just after I press a single button (e.g., b to go back a word) the mode changes to the normal insert mode. I'm wondering whether there is a way around these two problems.
Actually it's kinda weired. Playing more with it, it sounds like sometimes it works well and sometimes I have the mentioned problem. I'm not sure why that is. BTW, once I enter in the vi mode, how can I exit from this binding? I mean is there like an unset command or sth (what is it exactly)? Also what are the different keyboards bindings available besides the vim and emacs? Does anyone have a good reference or link for these stuff?
Originally Posted by Tinkster
Your first problem is somewhat nondescript shall I say. Which vi commands aren't working?
Re the 2nd issue: My bash *doesn't* exit vi command mode
after the first command; it stays in command mode until I
press i,a, ... some editing command. Maybe you're using
Thanks for the useful info.
BTW as for doing top post, if you're referring to quoting by that I don't see why you think it is pointless and even ugly. Especially in a thread like this where there are multiple posts from different people, it would make it really easy to follow whom and what you're responding to. Ofcourse, you could always refer to people by their names as an alternative but what if there are many posts over multiple pages. And also again in that case whoever is following the thread would need to go back and forth between different posts which would make it kinda hard to follow. So, I really think quoting is actually beneficial....
PS: Not quoting this post as you requested though! :P