Alex Rivera | Logout

Vim in Mac OS X Terminal: Move cursor word by word

Asked 2011-03-17T21:40:51.857
11

I have followed the guidance in Is there any way in the OS X Terminal to move the cursor word by word? and now in terminal I can move cursor word by word.

However, in Vim, I am only able to move backward word by word. I cannot move forward word by word, no matter I set \033f to option+cursor-right or shift+cursor-right. The only workaround I figured out is to go to normal mode and click <w> to move to next word. Any idea about how to fix that? Thanks.

Edit
Report

1 Answer

12

w is not a workaround. It's the primary way to move word by word (see also: W, b, B, e, E). What you want is a workaround that won't help you learn Vim at all.

answered 2011-03-18T06:31:38.630

Your Answer