2009/4/5 pr3d4t0r:
>
> I wrote a script that uses the @+ to copy a string to the clipboard.
> The strings are not being copied for some reason under the latest
> stable MacVim.
>
> Here is the code:
>
>      if has("gui_running")
>        let clipboardContents = split(location, " ")
>        let @+                = clipboardContents[0x01]
>      endif
>
> The same code works fine under gvim in OS X, Linux, and Windows.
>
> I tried setting @+ from the : command prompt as well:
>
> :let @+ = "this is a test."
>
> It doesn't work either.  Please advise and thanks in advance!

It works fine for me so I am guessing that we are talking about
different versions.  Are you using this:

http://code.google.com/p/macvim/

The older Carbon version of Vim is not supported anymore and has
problems with the pasteboard in Terminal mode whereas MacVim.app can
handle the clipboard both in GUI and Terminal mode.

Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to