dw should not delete the new line
FoundOne opened this issue · comments
Nayden Pendov commented
How to reproduce:
- Open a text file.
- Go to on the last word of a line.
- Press dw.
What happens:
It deletes the word and the next new line.
What should happen:
It should just delete the word.
Edit: I noticed that it happens with any whitespace.
Nayden Pendov commented
Oh, so it's supposed to do that. Ok. I'm sorry.
Felix Van der Jeugt commented
Yes, this can be a bit confusing at first. To just delete the word, use de
.
(could you close the issue if this seems reasonable?)
Nayden Pendov commented
Yes. Thanks for the advice.
Marc André Tanner commented
This is not so much about newline address ability, but the fact that w
and dw
i.e. when used with an operator does not cover the same range (in vim).