description | A plugin for the vis editor |
owner | 8ubr3blt@NOanonSPAMaddy.me |
last change | Wed, 4 Oct 2023 10:18:51 +0000 (4 18:18 +0800) |
URL | git://repo.or.cz/vis-exchange.git |
https://repo.or.cz/vis-exchange.git | |
push URL | ssh://repo.or.cz/vis-exchange.git |
https://repo.or.cz/vis-exchange.git (learn more) | |
bundle info | vis-exchange.git downloadable bundles |
content tags |
Operators for swapping two ranges of text[1].
NORMAL mode:
cx
textobject
|
motion
- On first use, marks the range. On second use, swaps its range with the previously marked one. If one of the ranges is fully contained in the other, it replaces the containing range.
cxx
- Like cx
, but uses the current line as range.
cxc
- Clears the range previously marked by a cx
/cxx
.
VISUAL mode:
X
- Like cx
, but uses the visual selection as range.
With multiple cursors, the range at each odd-numbered cursor is swapped with that at the next one, in pairs. Everything happens on the first/only use of the operator.
[1]: This plugin is an implementation of tommcdo/vim-exchange.
2023-10-04 | Georgi Kirilov | Squashed commitsmaster | commitcommitdifftreesnapshot (tar.gz zip) |
11 months ago | master | logtree |