Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

vim

macos

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.

like image 288
ximyu Avatar asked Mar 17 '11 21:03

ximyu


1 Answers

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.

like image 168
romainl Avatar answered Nov 15 '22 20:11

romainl