Moving to the next word in insert mode

From Vim Tips Wiki

Jump to: navigation, search
Tip 615 Printable Monobook Previous Next

created 2003 · complexity basic · author kallumama · version 5.7


You can move to the next word in insert mode using <shift> <right arrow key>

You can move to the next word in normal mode using w

You can move to the previous word in insert mode using <shift> <left arrow key>

[edit] Comments

This is true when not using :behave mswin. <C-Left> and <C-Right> will work in either case.


Not quite. <C-Right> differs depending on whether you are in insert mode or not.

normal mode: <c-right> moves by WORDS (like ":normal W") :help <C-Right>

insert mode: <c-right> moves by words (like ":normal w") :help i_<C-Right>


Personal tools