Re: 'gv' command strangeness
- Alexei Alexandrov wrote:
> Could you please explain me if the following Vim behavior bug or not.Let's call that a bug. I'll look into fixing it.
> Open any text file in Vim. Move on, for example, 10th line. Press
> 'yy'. Then move on another line. Press 'V' to get into the linewise
> Visual mode. One line is visually selected. That's fine. Press 'p' to
> paste the previously yanked text. Now press 'gv'.
> Expected behavior: the same line as before is visually selected.
> Observed behavior: somehow the line below the previously selected one
> is selected.
"Space is big. Really big. You just won't believe how vastly hugely mind-
bogglingly big it is. I mean, you may think it's a long way down the
road to the chemist, but that's just peanuts to space."
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///