News for hackers. Stuff that matters.
Re:How to Learn Vim: A Four Week Plan by nameless912 on Friday October 06, 2017 @12:30PM (#15418078)
One of my favorites: xp to exchange characters.

x cuts the character under the cursor and p pastes it after the cursor. Net effect is exchanging the character on the cursor with the one to the right of the cursor.

Re:How to Learn Vim: A Four Week Plan by u801e on Friday October 06, 2017 @08:07PM (#15421399)
You can do the equivalent lines with:

    ddp
dd deletes a line and p pastes the deleted line below the current line. Since your cursor ends up in the line after the line you just deleted, this ends up effectively exchanging the lines.