emacs-evil / emacs-evil/evil

Question: make evil not to touch whitespace for deleting quotes

Open
#970 0 comments 0 reactions 0 assignees View on GitHub
help wanted question
Dominant language
Emacs Lisp
Stars
3.9k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

Consider this code:

const char mytext[] = ;
//[snip]
"some text in a designated initializer",

da"ing quoted text, and pasting after the "mytext[]" results in:

const char mytext[] = "some text in a designated initializer";
//[snip]
,

This might even get hilarious, consider the following text in either text-mode or markdown-mode *(or, I think, any markup mode)*:

text1: "text2"

# New paragraph

Deleting `"test2"` with the quotes results in this:

text1: # New paragraph

I have no idea how could I not notice it, but this seems to copy vim behavior. [Acc. to this question](https://superuser.com/questions/537453/vim-copy-quoted-string-without-whitespace) workaround is using 2di", works for me.

**My question**: is there a way to rebind all of \a\ to behave like 2\i\?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.