On 01/02/13 20:15, lei yang wrote:
> 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 think (if I understand your intent) you want to use the "+" or "*"
register, assuming your vim is built with +clipboard
You can check the output of
:version
to make sure that you have a build with "+clipboard" rather than
"-clipboard". You can then specify the register you want, such as
"+yy
to yank the line to the system clipboard. You may want to read at
:help clipboard
:help registers
:help quoteplus
:help quotestar
(If you use Windows, there is no difference between "*" and "+"; if
you use an X Window system, there's a subtle difference)
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Wednesday, January 2, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment