Using vim-surround, if you have the text

you say hello world and i say it back ^ 

...with your cursor on the character the carat indicates, then enter ys2aw", you end up with the line

you say "hello world" and i say it back 

However, in Emacs, when evil-surround is enabled, if you take the same initial line and perform the same keystrokes, you instead end up with

you say "hello world "and i say it back 

Is this a known issue, or expected behavior in some way?

I stripped down my init.el so that the only lines in it require and enable evil and evil-surround, so I can't see how my configuration would be the problem. I wasn't able to find any reference to any similar issues on the Github though, which is surprising to me if other people are experiencing it; it seems like a pretty common command to run.

If anyone else can reproduce this behavior, let me know so I know I'm not crazy!

Edit:

A different means of achieving the same effect as desired is referenced in this issue: #25

Also, after reading TFM and understanding how the aw and iw motions work, I agree with /u/bugamn that evil-surround has the most consistent behavior; since I like homogeneity (I always enable evil-want-Y-yank-to-eol), I don't really feel the need to raise an issue. If anyone else finds this irksome though, feel free to copy the text of this post to your heart's content if you do want to raise one.

submitted by /u/summetria
[link] [comments]