Replace evil-multiedit with evil-mc
This commit is contained in:
parent
157eb3e5da
commit
0d985281eb
5 changed files with 112 additions and 49 deletions
|
@ -278,23 +278,24 @@
|
|||
(call-interactively 'company-dabbrev-code)
|
||||
(company-select-previous-or-abort))))
|
||||
;; evil-mc
|
||||
:n "M-d" #'evil-mc-make-cursor-here
|
||||
:v "R" #'evil-mc-make-all-cursors
|
||||
:nv "M-d" #'evil-mc-make-and-goto-next-match
|
||||
:nv "M-D" #'evil-mc-make-and-goto-prev-match
|
||||
(:prefix "gz"
|
||||
:nv "m" #'evil-mc-make-all-cursors
|
||||
:nv "u" #'evil-mc-undo-all-cursors
|
||||
:nv "z" #'+evil/mc-toggle-cursors
|
||||
:nv "c" #'+evil/mc-make-cursor-here
|
||||
:nv "n" #'evil-mc-make-and-goto-next-cursor
|
||||
:nv "p" #'evil-mc-make-and-goto-prev-cursor
|
||||
:nv "N" #'evil-mc-make-and-goto-last-cursor
|
||||
:nv "P" #'evil-mc-make-and-goto-first-cursor)
|
||||
(:after evil-mc
|
||||
:map evil-mc-key-map
|
||||
:n "M-D" #'+evil/mc-toggle-cursors)
|
||||
;; evil-multiedit
|
||||
:v "M-d" #'evil-multiedit-match-and-next
|
||||
:v "M-D" #'evil-multiedit-match-and-prev
|
||||
:v "C-M-d" #'evil-multiedit-restore
|
||||
:v "R" #'evil-multiedit-match-all
|
||||
(:after evil-multiedit
|
||||
(:map evil-multiedit-state-map
|
||||
"M-d" #'evil-multiedit-match-and-next
|
||||
"M-D" #'evil-multiedit-match-and-prev
|
||||
"RET" #'evil-multiedit-toggle-or-restrict-region)
|
||||
(:map (evil-multiedit-state-map evil-multiedit-insert-state-map)
|
||||
"C-n" #'evil-multiedit-next
|
||||
"C-p" #'evil-multiedit-prev))
|
||||
:nv "C-n" #'evil-mc-make-and-goto-next-cursor
|
||||
:nv "C-N" #'evil-mc-make-and-goto-last-cursor
|
||||
:nv "C-p" #'evil-mc-make-and-goto-prev-cursor
|
||||
:nv "C-P" #'evil-mc-make-and-goto-first-cursor)
|
||||
;; evil-surround
|
||||
:v "S" #'evil-surround-region
|
||||
:o "s" #'evil-surround-edit
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
(ex! "@" #'+evil:macro-on-all-lines) ; TODO Test me
|
||||
(ex! "enhtml" #'+web:encode-html-entities)
|
||||
(ex! "dehtml" #'+web:decode-html-entities)
|
||||
(ex! "ie[dit]" #'evil-multiedit-ex-match)
|
||||
(ex! "mc" #'+evil:mc)
|
||||
(ex! "na[rrow]" #'+evil:narrow-buffer)
|
||||
(ex! "retab" #'+evil:retab)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue