Swapping "i" and "e" causes "ds" and "cs" to stop working
Timothy Harper
timcharper at gmail.com
Fri Sep 2 20:35:50 CEST 2011
On Sep 1, 2011, at 6:18 AM, Vegard Øye wrote:
> On 2011-08-31 20:07 +0200, York Zhao wrote:
>
>> (define-key evil-motion-state-map "i" 'evil-forward-word-end)
>
> This overwrites the bindings for inner text objects, which are bound
> in `evil-motion-state-map' as "iw", "i(", etc.
>
> Evil and evil-surround can be made more flexible in two steps:
>
> 1. Define the keymaps `evil-outer-text-objects-map' and
> `evil-inner-text-objects-map' for binding text objects, and have
> evil-surround use these maps. Evil commit 2104311 adds the keymaps,
> and I have created a pull request for evil-surround:
>
> https://github.com/timcharper/evil-surround/pulls
>
> 2. With the above in place, it might be more fitting to move text
> objects from Motion state to Visual state and Operator-Pending
> state (instead of having the latter two inherit from the former).
> Text objects have no function in modes that come up in Motion
> state, and as seen, they get in the way of rebinding.
>
> --
> Vegard
Sorry I didn't get to that pull request earlier. I didn't know what was motivating it, nor who epsilon47 was. Merged in, thanks!
Tim
More information about the implementations-list
mailing list