On 01/03/2013 02:15 AM, lei yang wrote: > Hi experts, > > I know in one text,we can use "yy" to copy something to another place > in text, if I can't to copy something to another place, eg: from a > text,and copy something using vim, and paste( we don't need to use > vim) something to another place, how could I do? the real question is > how chould I put something to the vim chipboard. and it can paste to > another place( doc, terminal)
I use these mappings to make copy & paste easier: '"Yank content in OS's clipboard vnoremap <leader>yo "*y "Paste content from OS's clipboard nnoremap <leader>po "*p' For this to work in console Vim, Vim would have to be complied +clipboard as has been mentioned. If it has, these would need to be appended to your ~/.vimrc. Cheers, Phil... -- currently (ab)using CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical, Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal
signature.asc
Description: OpenPGP digital signature
