On 31/01/09 16:18, [email protected] wrote:
> Since making a system upgrade, my middle mouse click does no longer
> paste the xclip-clipboard but pastes the first item in the register. I
> tried putting
>
> :nnoremap<MiddleMouse> :w !xclip<CR><CR>
> :nnoremap<MiddleMouse> :-1r !xclip -o -sel clip<CR>
>
> in my .vimrc but nothing changes. conversely, I can't select text
> inside of vim and copy it to xclip or the gnome clipboard.
Is there a clipboard tool in Gnome? I had similar problems (not only in
gvim) on my Linux system with KDE desktop, and klipper (the KDE
clipboard tool) was a great help.
In Vim, the X selection (for middle-mouse pasting) is supposed to be the
* (star) register. Try instead
nnoremap <MiddleMouse> "*p
inoremap <MiddleMouse> <C-R>*
Remember that on X11 systems, <MiddleMouse> and "Edit => Paste" don't
use the same register: the former (X-selection) is the * (star)
register, the latter (X-clipboard) is the + (plus) register.
Best regards,
Tony.
--
TIM: That is not an ordinary rabbit ... 'tis the most foul cruel and
bad-tempered thing you ever set eyes on.
ROBIN: You tit. I soiled my armour I was so scared!
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---