-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJQ5P/iAAoJEFDgLr75E3sPKzsH/0pRoeSdULPU27lRvApTM8SU
A862e43uQLnlbNniPHf8a9yA9+TJ3V3Y5rVbtsGuGX0HxkErp4XoGTfaFc+4RBfy
YNGbM0WFEwKON+AqkaQl/QdaZzpy8v9M2mHtwHjDKNiQJVCQjULcBJnEJjtOzjqm
MvA+prH7CwU+14AxRuNw6pYfz75Z2l+LxurZoXmgIYOx5tZb9cjuQ1cNS6dfjuXs
WkTjtkDJoqFqjdoohwdE1hpQh6QsY7bm4QOTlCdnZCGwnAu5ltyCKjL70QAaQqfj
XT3McnZ2HVfUhSPJ7y02o1s3NRLCMjLsp1pqwPCHZoVIgWXo85guLwrejQA5H4U=
=qmvV
-----END PGP SIGNATURE-----
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
Wednesday, January 2, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment