https://github.com/Dewdrops/evil-exchange.git
git clone 'git://github.com/Dewdrops/evil-exchange.git'
English is not my first language, so feel free to correct me of any mistake.
Easy text exchange operator for Evil. This is the port of vim-exchange by Tom McDonald.
gx
(evil-exchange)
On the first use, define (and highlight) the first {motion} to exchange. On the second use, define the second {motion} and perform the exchange.
gX
(evil-exchange-cancel)
Clear any {motion} pending for exchange.
gx
(and gX
) can also be used from visual mode, which is sometimes easier than coming
up with the right {motion}gxiw
), you can use .
(evil-repeat) the second time.gxx
works as you expect.(require 'evil-exchange)
;; change default key bindings (if you want) HERE
;; (setq evil-exchange-key (kbd "zx"))
(evil-exchange-install)
You can change the default bindings by customizing evil-exchange-key
and/or evil-exchange-cancel-key
BEFORE evil-exchange-install
is called.