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

s do not replace symbol on the cursor #1307

Closed
idoo opened this issue Apr 5, 2019 · 3 comments
Closed

s do not replace symbol on the cursor #1307

idoo opened this issue Apr 5, 2019 · 3 comments
Labels
faq Comes up frequently, and is likely answered in the FAQ (or should be) invalid Unactionable, unrelated, inappropriate, or a pilot error module:editor/evil Pertains to Doom's :editor evil module re:keybinds Changes to or discussion about Doom's keybinds status:resolved Issue was addressed internally

Comments

@idoo
Copy link

idoo commented Apr 5, 2019

Observed behavior

pressing s do not replace symbol on the cursor - it's pasting >2 to the command line

Expected behavior

I expected to replace symbol on the cursor and change to insert mode

Steps to reproduce

  1. Select some line of code
  2. Press s
@hlissner hlissner added invalid Unactionable, unrelated, inappropriate, or a pilot error module:editor/evil Pertains to Doom's :editor evil module re:keybinds Changes to or discussion about Doom's keybinds labels Apr 5, 2019
@hlissner
Copy link
Member

hlissner commented Apr 5, 2019

This is intentional. s and S have been replaced by evil-snipe (which provides 2-character versions of the f/F motion keys, ala vim-seek or vim-sneak).

It was done because the new behavior is more useful than the original substitution behavior of s and S, which are still available with cl and cc respectively.

If you want to restore the old behavior, simply disable evil-snipe-mode:

;; in ~/.doom.d/config.el
(after! evil-snipe
  (evil-snipe-mode -1))

But I would recommend using cl and cc instead.

@idoo
Copy link
Author

idoo commented Apr 5, 2019

@hlissner it's nice to know. What do you think if we'll add it to the wiki?

@hlissner hlissner added the status:resolved Issue was addressed internally label Apr 5, 2019
@hlissner
Copy link
Member

hlissner commented Apr 5, 2019

That's a good idea. I will be publishing some new documentation to replace the wiki soon (including a new FAQ with common issues), I will be sure to add this to it. Thanks! In the meantime, I'll consider this resolved.

@hlissner hlissner closed this as completed Apr 5, 2019
@hlissner hlissner added the faq Comes up frequently, and is likely answered in the FAQ (or should be) label Apr 5, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
faq Comes up frequently, and is likely answered in the FAQ (or should be) invalid Unactionable, unrelated, inappropriate, or a pilot error module:editor/evil Pertains to Doom's :editor evil module re:keybinds Changes to or discussion about Doom's keybinds status:resolved Issue was addressed internally
Projects
None yet
Development

No branches or pull requests

2 participants