Thursday, February 4, 2016

Re: Feature or bug? dw oddities

On Thursday, February 4, 2016 at 2:56:28 PM UTC+1, Christian Brabandt wrote:
> Hi Elmar!
>
> Where can I see your clone?


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


https://github.com/elmar-hinz/Python.Vii

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: