emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.38k stars 281 forks source link

the feature require to erase incorrect characters #899

Closed earthIsAPrisonIfYouNotAwareItCanNotOut closed 7 years ago

earthIsAPrisonIfYouNotAwareItCanNotOut commented 7 years ago

Issue type

Environment

Emacs version: 25.1 Operating System: osx Evil version: latest version Evil installation type: MELPA Graphical/Terminal: graphical Tested in a clean environment: no

Reproduction steps

Expected behavior

we don't know that object

Actual behavior

we don't know that objects

vyp commented 7 years ago

I think you were trying to report this as a bug rather than enhancement request? In any case, if I understand correctly, I don't think this is a bug because this is the same behaviour as vim (test with vim -u NONE). Remember that even after pressing $ to go to the end of the line, the cursor is still on the 'left' of the last character, hence why there is still an 's' remaining after doing dFs from there.

earthIsAPrisonIfYouNotAwareItCanNotOut commented 7 years ago

I have the same idea with you. I also think this is not a bug, but I expect to know how vimer to erase characters from right to left and get the correct result

vyp commented 7 years ago

As in my point was that the correct result is "objects". So I'm not really sure what enhancement you would like to see?

If you're just asking a question, I guess you would just have to press x after doing $dFs? (Or in this case you can achieve your desired result with the same number of keystrokes by doing $FsD.)

wasamasa commented 7 years ago

This is an issue tracker for Evil, not a place to find out how to achieve things in Vim. For that kind of thing, you're better off asking r/vim or #vim on Freenode.

earthIsAPrisonIfYouNotAwareItCanNotOut commented 7 years ago

This problem puzzles me many times, thanks for respond @vyp. This issue is just a feature request, something people may not meet

Dickby commented 7 years ago

try dvFs