To swap the current line with the next one, type ddp while in command mode.
- dd – delete line (actually called cut in other editors) and save it in register
- p – paste line from register
To swap the current line with the next one, type ddp while in command mode.