Scroll up/down while selecting multi-page block of text in Vim through putty

TCSGrad picture TCSGrad · Dec 8, 2009 · Viewed 13.2k times · Source

I'm using vim 6.3.81 on a xterm through putty. When I use set mouse=a , I can scroll through the file , but not select text. When mouse is disabled using set mouse=, I can select text with mouse (automatically copied to a buffer) , but if the text block is over one page long , I can't scroll up/down (and have to select text one screen at a time) !!

Is there any way to have the best of both - while selecting text with mouse , if i reach the end of page , it automatically scrolls up/down depending on whether i've reached top/bottom of page and allows me to select text from the next page as well ?

I know vim is powerful/flexible enough to do what I want - I just don't know how !! Can anyone help ?

Answer

Vasu picture Vasu · May 21, 2010

When you have set mouse=a , You can select by <Shift> + LeftMouse to do a selection, <Shift> + RightMouse to paste your code as usual.

Hope this helps !!