Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving a word forward in z shell

Tags:

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

like image 823
kal Avatar asked Feb 06 '10 05:02

kal


1 Answers

If you're using iTerm2 on OSX, you can use the Natural Text Editing preset under Preferences -> Profile -> Keys.

iTerm Keys Preferences

This supports these key combos (which are very similar to other editors):

  • alt/option + left = move left one word
  • alt/option + right = move right one word
like image 89
Clay Avatar answered Oct 11 '22 19:10

Clay