Tuesday, February 9, 2016

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

Hi,

Elmar Hinz schrieb am 09.02.2016 um 17:19:
>
> I am observing an behaviour that doesn't seem consistent with the help.
>
> Given following text, with Cursor on A:
>
> Aaa
> bbb
> ccc
>
> Hitting 2d$ deletes the space before A. This seems to be the behaviour of exclusive-linewise.
>
> The help topic of exclusive-linewise explains this happens when a motion is exclusive. This conflicts with the description that the $-motion is inclusive.

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

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

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