Switch Lines
From Vim Tips Wiki
Proposed new tip
Please do not discuss this tip on this page, and do not edit the talk (discussion) page.
Created: February 16, 2008
Complexity: basic
Author: Metacosm
Version: 7.0
- To swap the current line, and the line below, in command mode do: ddp
- To swap the current line, and the line above it in command mode do: ddkP or kddp
