On Sunday, December 28, 2014 12:22:41 PM UTC-8, Tim Chase wrote:
> On 2014-12-28 20:59, Mathias Rav wrote:
> > On Sun, Dec 28, 2014 at 7:24 PM, Bao Niu <niubao56@gmail.com> wrote:
> > > If I select a long patch of code spanning several pages, I'd like
> > > to view how much I actually selected by scrolling up and down.
> > > However this will automatically 'ruins' what I have selected
> > > because it changes the anchor!
> > >
> > > How can I fix the two ends of what I have selected in visual
> > > mode? Many thanks.
> >
> > You can press 'o' in visual mode to go to the other end of the
> > selected text -- see :help v_o.
> >
> > You can also press g CTRL-G in visual mode to see how many
> > lines/words/bytes you have selected -- see :help v_g_CTRL-G.
>
> Additionally, instead of using visual mode right-out, you can drop a
> mark at the two ends (such as 'a and 'b) and then scroll between them
> to your heart's content. Once verified, you can
>
> v`ao`b
>
> (or use V/^V if you want line/block selection) and operate on the
> resulting selection that you've verified.
>
> -tkc
So is this a bug? I mean, scrolling a screen up or down shouldn't affect my selection, should it?
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment