Swapping "i" and "e" causes "ds" and "cs" to stop working

York Zhao gtdplatform at gmail.com
Wed Aug 31 20:07:03 CEST 2011


Hi,

I found myself using "i" much more than "e" and on dvorak layout the key "e" is
more convenient than the key "i", so I swapped the two keys like this:

(define-key evil-normal-state-map "i" nil)
(define-key evil-normal-state-map "I" nil)
(define-key evil-visual-state-map "I" nil)

(define-key evil-motion-state-map "e" nil)
(define-key evil-motion-state-map "E" nil)

(define-key evil-motion-state-map "i" 'evil-forward-word-end)
(define-key evil-motion-state-map "I" 'evil-forward-WORD-end)

(define-key evil-normal-state-map "e" 'evil-insert)
(define-key evil-normal-state-map "E" 'evil-insert-line)
(define-key evil-visual-state-map "E" 'evil-insert)

However, after doing this, the "ds" and "cs" in "surround" no longer work. I
don't understand why this is happenning and whether this is evil's problem or
this is a problem is in "surround", or, if I'm doing something wrong.


Thanks,

York



More information about the implementations-list mailing list