vim-mode-plus-exchange
Exchange two areas of text like vim-exchange.
dillonkearns 976 2 0.4.0 MIT GitHub

vim-mode-plus-exchange package

A port of Tom McDonald's vim-exchange.

Exchange demo

Note Package requires vim-mode-plus

cx{motion} sets the first area for the exchange (or initiates it once ). Notice that the . command can be used to mark a second area for the exchange using the same {motion} as the first.

Exchange demo

cxx marks a line to be exchanged. In visual-mode, x marks the selection to be exchanged.

cxc clears pending exchanges.

See these pages for more: