Tuesday, February 9, 2016

Re: inclusive-linewise: Is the help topic wrong?

>
> quoted from the help (55 lines below ":help d"):
>
> | An exception for the d{motion} command: If the motion is not linewise, the
> | start and end of the motion are not in the same line, and there are only
> | blanks before the start and after the end of the motion, the delete becomes
> | linewise. This means that the delete also removes the line of blanks that you
> | might expect to remain. Use the |o_v| operator to force the motion to be
> | characterwise.
>
> "only blanks" is to be understood as "only blanks or no characters at
> all".
>
> Regards,
> Jürgen
>


Thank you Jürgen,

that fully and satisfyingly explains my observation.

Also the |o_v| operator works, however by excluding the last character in the last line from deletion, it's not the most intuitive behaviour in this case.

Kind regards,

Elmar

--
--
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:

Post a Comment