vim cut&paste on RH8.0

Matthew Hawkins matt at mh.dropbear.id.au
Fri Jan 3 11:10:07 EST 2003


Simon Burton (simonb at webone.com.au) wrote:
> I used to be able to use the X clipboard: y'know, select and middle mouse and
> all that, but now vim seems to have it's own cut buffer; when i middle mouse in
> a vim it pastes what was in the yank buffer.

Vim always has had its own cut buffer.  Have a read around ":help registers"

You might like to try putting something like this into your ~/.vimrc:

inoremap <MiddleMouse> <C-o>:set paste<CR><MiddleMouse><C-o>:set nopaste<CR>

Cheers,

-- 
Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20030103/4d6418c3/attachment.bin


More information about the linux mailing list