On Sat, Jul 08, 2006 at 12:10:14AM +0200, Nikolai Weibull wrote:
>On 7/7/06, Sean Reifschneider <[EMAIL PROTECTED]> wrote:
>>On Fri, Jul 07, 2006 at 06:47:55PM +0200, Nikolai Weibull wrote:
>>>OK, so here's what you do:
>>>
>>>>>:map <MiddleMouse> :set paste<cr>"*p:set nopaste<cr>
>>>
>>>and
>>>
>>> :inoremap <C-o>set paste<Cr><C-r>*<C-o>set nopaste<Cr>
>>
>>That doesn't seem to do the job.  I'm not quite sure what you're trying to
>>accomplish here, so I can't tell where it's going wrong.
>
>There should be a <MiddleMouse> in the second line as well, of course.

Even with "<MiddleMouse>" in the second line, it's not doing anything that
I can see.  It probably needs "set mouse=" for it to do anything, and as I
said originally, "set mouse" totally doesn't work.

>Anyway, how about
>
> set mouse=a ttymouse=xterm
>
>?  That certainly does something on my terminal.  I can't get it to
>work correctly in insert mode for some reason, but I really don't care
>so I'm leaving it at this.

Probably because for it to work in insert mode you would need to do "set
mouse=i".  However, as I explained originally, "set mouse" totally changes
the way paste works from other applications in an xterm, including, you
know, not pasting the text I've selected but some other text that came from
I know not where.

So, my original suggestion stands: Make it so that when vim detects a bunch
of data arriving quickly, it sets paste.

Thanks,
Sean
-- 
 A computer scientist is someone who, when told to "Go to Hell," sees the
 "go to," rather than the destination, as harmful. -- Dr. Roger M. Firestone
Sean Reifschneider, Member of Technical Staff <[EMAIL PROTECTED]>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability

Reply via email to