When you're using vim, you can move forward word by word with w
. How do I go backwards?
Press w (“word”) to move the cursor to the right one word at a time. Press b (“back”) to move the cursor to the left one word at a time. Press W or B to move the cursor past the adjacent punctuation to the next or previous blank space. Press e (“end”) to move the cursor to the last character of the current word.
:w - Saves the file you are working on. :w [filename] - Allows you to save your file with the name you've defined. :wq - Save your file and close Vim.
Use b
to go back a word.
You may also want to check out W
and B
to advance/go back a WORD
(which
consists of a sequence of non-blank characters separated with white space, according to :h WORD
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With