John Beckett wrote:
> I do not remember paste positioning the cursor like this:
>
> gvim "+set nocp ve=all" -u NONE
> i123456<Esc> insert some text
> F3 jump back to the '3'
> Ctrl-V y start blockwise selection and yank (copy the '3')
> f5 jump to the '5'
> P paste the '3' before the cursor
>
> Result: The cursor is AFTER the pasted text (the '3').
>
> If blockwise copy/paste more than one column, we see that the
> cursor (and the `[ mark) is one character after the first pasted
> character.
>
> If repeat the paste after doing ':set ve=' the result is that
> the cursor is at the START of the pasted text (which is what I
> expect to always happen).
>
> I am perplexed by the above because I paste blocks a few times a
> week, and I don't remember P leaving the cursor one character
> after the first pasted character, yet I don't think I've changed
> my 've' ('virtualedit') setting for a long time.
>
> Has blockwise paste always worked like this with ve=all?
It's strange to leave the cursor after the first character.
I'll make a remark in the todo list, with low priority.
--
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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