On 2016-02-04, Christian Brabandt <cblists@256bit.org> wrote:
> 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.
This fits with the fact that heirloom vi also does it. It
contradicting the POSIX standard explains why no-one else does
it, except perhaps commercial Unixes/OpenSolaris with a vi
independently derived from 4BSD vi.
Note: Ubuntu's "elvis-tiny", which was the version of elvis I
actually tested, has far more simplistic and clearly incorrect
behavior - it _always_ deletes the newline when deleting the
last word of a line, and fails entirely on the last word of the
last line. I've since downloaded a proper version of elvis and
it behaves the same as all the other clones apart from vim.
Maybe there should be a compatibility option to control this
behavior.
--
--
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.
Thursday, February 4, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment