[Bug][Vim Mode] word motion includes endline symbol

Word motion on last word in line captures end line symbol,
So such command as dw or cw removing it.
For example:

test |test
second line

where | is cursor position, after action dw gives result

test second line

but expected result is:

test 
second line
2 Likes

This seems like an old bug, but the behaviour is still there. I think it’s actually just the next character after the word, not only newlines. I have for example

|abc def

where | is the cursor position. When I enter cw, I get

|def

but should get

| def