Tip 48: Move Word-Wise
Return to the top: <<Practical Vim>>
| Command | Move Cursor |
w
|
Forward to start of next word |
b
|
Backward to start of current/previous word |
e
|
Forward to end of current/previous word |
ge
|
Backward to end of previous word |
-
w: (for-)ward -
b: backward
-
ea: append at the end of the current word -
gea: append at the end of the previous word
Know Your Words from Your WORDS
- A word consists of a sequence of letters, digits, and underscores, or as sequence of other nonblank characters seperated with whitespace.
References
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h word
- A WORD consists of a sequence of nonblank characters seperated with whitespace.
References
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h WORD