Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the default bash/zsh mode to vi command mode instead of vi insert mode?

So in my bash/zsh terminals I have the set -o vi. But then I need to press ESC to get into command mode. I can't figure out how I could make that command mode the default behavior?

like image 889
revit09 Avatar asked Feb 19 '13 17:02

revit09


1 Answers

You can achieve that behaviour with 'xdotool'. Install it and add this to your ~/.bashrc then

set -o vi
xdotool key Escape
like image 146
ineb Avatar answered Sep 23 '22 12:09

ineb