74th / vscode-vim

vim emulator for Visual Studio Code
MIT License
215 stars 25 forks source link

`ce` includes next word (excluding its last character) #39

Closed nvanmeurs closed 8 years ago

nvanmeurs commented 8 years ago

Example line: This sentenze has a typo.

This can be reproduced using the following steps:

  1. Move your cursor to the word sentenze
  2. Type ce.

Actual result: This ss a typo.

Expected result: This s has a typo.

74th commented 8 years ago

Thank you for your report. VimStyle has a wrong ce function. I test this action with vim -u NONE, but vim does not show your expected result.

This setenze has a typo.
     ^ ce[ESC]

vim -u NONE show:
This  has a type.
    ^

I have not used ce, it seems same as cw.

nvanmeurs commented 8 years ago

Yeah, in Vim it works as expected it replaces up to the end of the word. I got the ce command from the vimtutorial as I started to learn Vim yesterday. I'm very happy with your VSCode plugin. Will use cw for now, since that one does work properly?