Thank you for the interesting input. I conclude you think the vim behaviour is at least disputable here. I keep this im mind for the future. For now I try to emulate Vim behaviour.
Obviously this is an example of
help: exclusive-linewise
That can be proved with, with cursor on X:
Xxx
xxx
xxx
xxx
With 2dw exclusive-likewise behaviour is used and the whitespace before X is deleted.
With 1dw neither whitespace nor line-break are deleted.
Elmar
Thank your for your interest im my Python clone:
https://github.com/elmar-hinz/Python.Vii
> > With 2dw exclusive-likewise behaviour is used and the whitespace
> > before X is deleted. With 1dw neither whitespace nor line-break are
> > deleted.
>
> I think, it is this part of the code from op_delete()
>
> /*
> * Imitate the strange Vi behaviour: If the delete spans more than one
> * line and motion_type == MCHAR and the result is a blank line, make the
> * delete linewise. Don't do this for the change command or Visual mode.
> */
>
> So this seems to come from some old vi oddity.
>
Thank you Christian for your input. So we find Vim itself thinks this behaviour disputable.
Elmar
Btw: I am still looking for the final name.
[ ] Vii
[ ] Vip
Summarising this, you think vim is behaving differently than most other vi derivates?
Why is the comment quoted by Christian Brabandt telling, vim tries to behave like vi?
Elmar
Then my summary was wrong.
You found out original Vi and Vim behave the same way?
Elmar