Vim shortcut to traverse the words in forward direction i.e left to right is w / W
What is the shortcut to go in the opposite direction?
Similarly x deletes character on which cursor is there. So continuously pressing it deletes characters from left to right. Is there a shortcut to delete characters from right to left i.e characters before the cursor.
bgoes backwards to the previousbeginning of a word.Xwill delete the character before the cursordbwill delete from the cursor position to the previous beginning of a word (excluding the letter at the cursor). e.g. ([]is the cursor position)Of course
bis just a movement command, so you can tack it on to any command that takes a movement, e.g.cbwillcut/change to the beginning of the word,vbwill highlight it, etc.