vim-fanfingtastic icon indicating copy to clipboard operation
vim-fanfingtastic copied to clipboard

Pressing `Esc` in delete/change operation still deletes the character your cursor is over

Open Lamby777 opened this issue 1 year ago • 1 comments

If your cursor is on the first line...

aaaaaaaaaaaaaaa
aaaaaaaaaabaaaa

and you want to do dtb but then press Esc instead of b because you changed your mind, it still deletes whatever character you're on, making it

aaaaaaaaaaaaaa
aaaaaaaaaabaaaa

Easily reverted with an undo, but still pretty annoying.

Lamby777 avatar Dec 10 '23 02:12 Lamby777

I can reproduce this bug. I was wondering if this might be the default Vim behavior, but it turns out that it isn't.

Starting Vim without any plugins and pressing dt<Esc> while the cursor is on the first character of aaaaaaaaaabaaaa doesn't delete anything.

qadzek avatar Mar 07 '24 15:03 qadzek