Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind in operator map #193

Open
Vurp opened this issue Nov 23, 2022 · 0 comments
Open

Bind in operator map #193

Vurp opened this issue Nov 23, 2022 · 0 comments

Comments

@Vurp
Copy link

Vurp commented Nov 23, 2022

I want to use the s key to use this mode. It would be useful to use
"sc" and "sd" for change and delete respectively. Like so:

(define-key evil-normal-state-map "s" 'evil-surround-edit)
(define-key evil-normal-state-map "sc" 'evil-surround-change)
(define-key evil-normal-state-map "sd" 'evil-surround-delete)

Though this isn't possible due to how emacs keybindings work. There
shouldn't be a key conflict as evil-operator-map has those mappings free.
But of course those bindings get shadowed.

Is this possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant