Thursday, April 28, 2011

Re: why does :copy move the cursor?

On 29/04/11 3:52 AM, Jean-Rene David wrote:
> Lately I've been using the Ex commands :d, :t, :m to shuffle text around
> while editing. Since the syntax of those commands require the source
> *and* destination lines, e.g.:
>
> :100copy150
>
> to copy line 100 below line 150, I wonder why my cursors is *moved* to
> line 150 after the command.
>
> I tend to use those Ex commands precisely to avoid having to navigate to
> the line I want to move. But then I end up having to navigate back to where
> I was before I entered the command.

And, annoyingly, such a movement doesn't count as a jump, and you can't
get back to where you were with ''

Is that a bug, perhaps?

Ben.

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

No comments: