1

When in a bash terminal, if I hit ESC or Shift + Tab the command line goes to the history where I can move around to previous bash commands with vi-like bindings. I get messed up when in this mode since I will unintentionally run various commands. I can only get out of this by hitting a or i.

I hit ESC and Shift + Tab frequently (though, accidentally) in my normal usage and I would like to disable this history search mode altogether.

Edit: The event also occurs when I hit any of F1 through F12 (except F4 and F11), pause/break, delete, home, pgup, and pgdn. I'm beginning to think it's related to unbound keys or perhaps something weird with my keyboard.

  • I cannot reproduce this. If I hit Esc, nothing happens and if I hit Shift+Tab nothing happens as well. In order to browse my command history I have to hit Ctrl+R. All these with gnome-terminal. What terminal are you using? – hytromo Jul 21 '14 at 16:20
  • When I do "echo $TERM" it returns "xterm". I figure that's how to tell which terminal I'm using. – mickwar Jul 21 '14 at 23:26
  • What system are you using? Ubuntu, KUbuntu, XUbuntu... ? – hytromo Jul 22 '14 at 14:15
  • I'm using Ubuntu 14.04 – mickwar Jul 22 '14 at 15:34
  • I'm not sure what echo $TERM does, but it returns xterm for me, even though I'm using terminator. – Sparhawk Jul 26 '14 at 3:42
2

I was going into some "vi-mode" in the terminal because of a line in my .bashrc file: set -o vi. Removing this line solved my problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.