Am 09.12.2011 11:09, schrieb Yukihiro Nakadaira:
:help `] says
                                              *']* *`]*
']  `]              To the last character of the previously changed or
                    yanked text.  {not in Vi}

But with the following command

   execute "normal! iaaa\<Esc>Ibbb\<Esc>`]"

Cursor is moved at first "a".
I expected that cursor is moved at last "b".
Is it intended behavior?

When yank or paste "bbb", `] moves cursor at last "b".

I also think this is a bug!  I have a script that doesn't work correctly
in some cases, because `] places the cursor *after* the change (instead
of the last character of the change).

The script maps a key that basically executes   n.n.n.n. ... until the
end of the buffer (for example: "repeat the last c//e (<- sort of!) for
all remaining matches").

Now if match A is immediately followed by the next match B, and A was
just changed, "n" will skip B, because search started at `] (= at the
first character of B).

--
Andy

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

Raspunde prin e-mail lui