In zshell how to move forward word, I can set -o vi and use vi format. Is there a way to move forward in zshell by a word
The ZLE widget for moving forward by one word is forward-word
. Therefore, you may use bindkey
to bind this widget to any key you want.
For example,
$> bindkey ^O forward-word
would allow you to move forward by one word when pressing Ctrl-O
. Note that ^O
is actually a quoted insert of Control followed by O
.