Evil's evil-inner-sentence seems to select an entire paragraph. For instance, if I do dis
somewhere in a paragraph it deletes the entire paragraph instead of just the sentence. This is also the case with das
. Is there a setting I need to change to make this behave more like vim, where only a sentence is deleted?
1 Answer
Apparently there is a variable called sentence-end-double-space
which is set to true by default, and tells Emacs that distinct sentences are separated by two spaces, not one. Toggling that to nil fixed my issue.
-
1Way back in the day, when I was taught touch typing, I was taught to use two spaces after a period, so that's what I've done for decades. No wonder my own text didn't show any differences. I'm glad you figured it out though.– g-gundamOct 17, 2022 at 15:54
-
1Also, it seems Spacemacs might have set that to nil for me by their default.– g-gundamOct 17, 2022 at 15:55
emacs -Q
(no init file). (HTH - if not, ignore.)dis
on some random prose in both vim and evil, and they both worked identically as far as I could tell. If he could provide a concrete example where vim and evil performdis
differently, that would help.