74th / vscode-vim

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

cw deletes new line character #15

Closed benjaminRomano closed 8 years ago

benjaminRomano commented 8 years ago

Given this code:

{
    "vimStyle.showMode": true
}

Using cw on true will change the text to this:

{
    "vimStyle.showMode": }
benjaminRomano commented 8 years ago

@74th A potential fix for this is to add selections to motions.

interface IMotion {
    SetCount(count: number);
    CalculateEnd(editor: IEditor, start: IPosition): IPosition;
    CalculateSelectionRange(editor: IEditor, start: IPosition): IRange; //New function
}

Do you think this is a good solution? Also, I could implement this if you are interested.