I like the fact that I've memorized ddp for switching two lines (i.e. dd deletes the line and then p puts it back '1 higher').
Is there are similar set of keystrokes for switching 2 characters so that wsih would become wish?
I like the fact that I've memorized ddp for switching two lines (i.e. dd deletes the line and then p puts it back '1 higher').
Is there are similar set of keystrokes for switching 2 characters so that wsih would become wish?
The answer turned out to be xp, just not the windows kind ;)
If you are working on your vim skills generally you may also find this useful:
How to automatically strip trailing spaces on save in Vi and Vim?
xp will swap current character with next character.
We can do another kind of swap, Xp will swap current character with previous character.