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

100933Re: vim + xclip

Expand Messages
  • ssizarit@gmail.com
    Jan 31, 2009
      On Sat, Jan 31, 2009 at 19:09, Tony Mechelynck
      <antoine.mechelynck@...> wrote:
      > On 31/01/09 16:18, ssizarit@... 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.

      Thanks, but that didn't work. I'm now using

      set mouse=nv

      instead of

      set mouse=a

      since that gives me more or less what I need. Will look into that
      Gnome Clipboard Manager though.

      Best Wishes,

      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 4 messages in this topic