Doom-emacs: `s` do not replace symbol on the cursor

Created on 5 Apr 2019  ·  3Comments  ·  Source: hlissner/doom-emacs

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
:editor evil invalid common keybinds resolved

Most helpful comment

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.

All 3 comments

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.

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ptival picture Ptival  ·  3Comments

ashiklom picture ashiklom  ·  3Comments

luisenrike picture luisenrike  ·  3Comments

benjaminbauer picture benjaminbauer  ·  3Comments

gilbertw1 picture gilbertw1  ·  3Comments