On 23/08/13 10:36, glts wrote:
On Fri, Aug 23, 2013 at 10:35 AM, glts <[email protected]> wrote:
On Thu, Aug 22, 2013 at 1:27 PM, Bohr Shaw <[email protected]> wrote:
However, the document says the register "1 always hold the text deleted by the
delete operator with these movement commands:|%|, |(|, |)|, |`|, |/|, |?|, |n|, |N|,
|{| and |}|.
I cannot reproduce this on Vim 7.4.
Just to make sure we are all on the same page, this is what I did:
Start Vim with vim -Nu NONE.
On the opening bracket of "one (two) three", press d%.
Now all three registers " 1 - contain "(two)".
I tried a few of the other operators mentioned, they also work correctly.
:s/operators/motions/
I used an HTML file, and I pressed d% on an <a> tag shorter than a line.
Part of both <a> and </a> tags, and the intervening text, were deleted,
but :reg showed old stuff in register 1. Then I did the same thing on a
<div> spanning several lines, and in this case the deleted text appeared
in register 1 as listed by :reg.
After each test I used u to undo it. I agree that d% on an HTML tag is
not a user's expected behaviour. I did not try the other movements, or %
on other kinds of paired objects.
I got the same results (no change in reg. 1) with v%d on an object
shorter than a line.
As said earlier, I'm using the latest gvim 7.4.007 with GTK2/GNOME2 GUI,
and it is a Huge build.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
1. You actually wore a blue ribbon to protest the Communications Decency
Act.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.