Loading ...
Sorry, an error occurred while loading the content.

Re: nowrap on, how to select part of a long line with the mouse?

Expand Messages
  • Bram Moolenaar
    ... Set the sidescrolloff option to a value of 1 or more. -- Seen it all, done it all, can t remember most of it. /// Bram Moolenaar -- Bram@Moolenaar.net --
    Message 1 of 6 , Feb 6, 2005
    • 0 Attachment
      Dave Ewart wrote:

      > > Dave Ewart wrote:
      > > >gvim 6.1 for Windows. Using 'nowrap' and trying to use the mouse to
      > > >select part of a line when:
      > > >
      > > >- - start of selection is 'visible' (on screen);
      > > >- - end of selection is off-screen to the right, because it's a long line;
      > > >
      > > >doesn't work. When the select hits the edge of the screen, the
      > > >selection 'stops' there - it would be nice if the window scrolled with
      > > >the selection, so that the currently-off-screen part of the line could
      > > >be selected.
      > > >
      > > >(I know that the whole line can be selected with 'V' in command mode,
      > > >and that 'v$' selects from the current position to the end of the line -
      > > >neither of those are what I'm trying to do)
      > > >
      > > >Is there a way to scroll and select beyond the current window size? (A
      > > >horribly hacky workaround is to make the font really small, making it
      > > >less likely that it will have scrolled out of the window - this is
      > > >clearly not the right solution, and it won't always work).
      > > >
      > > >Thanks,
      > > >
      > > >Dave.
      > >
      > > Try the following:
      > >
      > > 1. Select a few characters at one end of the text you want to select.
      > > 2. Use the horizontal scrollbar to move the other end into view.
      > > 3. Shift-click on the other end (right-click works also, but only if
      > > your 'mousemodel' option includes "extend").
      >
      > This works of course (thanks), but it still seems unnecessarily
      > complicated.
      >
      > Does anyone know how to make the window scroll as the selection is being
      > made?

      Set the 'sidescrolloff' option to a value of 1 or more.

      --
      Seen it all, done it all, can't remember most of it.

      /// 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 ///
    Your message has been successfully submitted and would be delivered to recipients shortly.