Indeed, the system vim has no clipboard support/access, and copying
with Cmd-C sometimes has trouble with line boundaries and certainly
can't deal with more than a screenful, so:

- Install and use the full GUI MacVim (it really is very nice), or,

- Install MacVim, then run "/Applications/MacVim.app/Contents/MacOS/Vim"
instead of "vim"; this will bring most of MacVim's goodness (including
clipboard access and more colors for syntax highlighting) to terminal
windows, or,

- write your selected text to the command "!pbcopy", which will put it
on the system clipboard (I've used This often when I find that I've
started something in the OS-supplied vim that I want to move over to
MacVim).

In the latter two cases, you can write shell commands or vim scripts
to make the change nearly transparent. 

Cheers,
Carl


> On Nov 15, 2013, at 1:54 AM, Li Xue <[email protected]> wrote:
> 
> Hello,
> 
> Does anyone know how to copy text from vim into system clipboard? I am using 
> iterm2 with the vim that comes with the Mac OS X system. 
> 
> I tried +y and tried *y, but still could not copy the text into the system 
> clipboard.
> 
> Thanks.
> 
> Li
> -- 
> -- 
> You received this message from the "vim_mac" 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
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "vim_mac" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message from the "vim_mac" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to