revit09
revit09

Reputation: 103

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?

Upvotes: 7

Views: 954

Answers (1)

ineb
ineb

Reputation: 53

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

set -o vi
xdotool key Escape

Upvotes: 3

Related Questions