0

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?

2
  • I don't use Evil, so I can't help (and the description means nothing to me, naturally). But I'll ask whether you think an Evil user will understand clearly enough just what actions and their effects you're describing. If you think not, consider describing them step by step, starting from emacs -Q (no init file). (HTH - if not, ignore.)
    – Drew
    Oct 17, 2022 at 3:09
  • The question is understandable, but I was unable to replicate the bug. I tried 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 perform dis differently, that would help.
    – g-gundam
    Oct 17, 2022 at 4:43

1 Answer 1

2

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.

2
  • 1
    Way 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-gundam
    Oct 17, 2022 at 15:54
  • 1
    Also, it seems Spacemacs might have set that to nil for me by their default.
    – g-gundam
    Oct 17, 2022 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.