Reply to message «Re: Inserted text is step wise shifted to the right», 
sent 12:30:01 22 November 2010, Monday
by Alexander Dietz:

> thanks for your suggestion, it seems to work! Although I feel it strange to
> press a button before pasting with the mouse....
You missed my second suggestion:
> Yes, unless you make a shortcut. More optimal solution is to setup mouse, so I
> ask what terminal you are using.
Setting up mouse so that pressing <F1> before pasting is not needed is 
possible, 
but it requires knowledge about your terminal type. This is what I have in my 
.vimrc:
    if has("mouse")
        set mousemodel=extend
        set mouse=a
        if has("gui_running")
            set mousehide
        else
            set ttymouse=xterm2
        endif
    endif
    nnoremap <MiddleMouse> "*p
    vnoremap <MiddleMouse> d"*p
    xnoremap <MiddleMouse> <C-g>d"*p
    lnoremap <MiddleMouse> <C-r><C-r>*
    inoremap <MiddleMouse> <C-\><C-o>"*p
    onoremap <MiddleMouse> <Nop>
This works for rxvt-unicode+screen and konsole(yakuake)+screen, but does not 
work inside ssh.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to