On Apr 5, 4:43 am, björn <[email protected]> wrote:
> 2009/4/5 John Beckett:
> > pr3d4t0r wrote:
> >> :let @+ = "this is a test."
>
> > Does MacVim show '+clipboard' for the :version command?
>
> As far as I can tell those tips are completely outdated. There is a
> clipboard on Mac OS X and MacVim.app uses it properly -- there is no
> need to use "pbcopy/pbpaste". I already said this in another post but
> interaction with the pasteboard is fully supported in both GUI and
> terminal mode (the latter only if you are using the latest snapshot
> version). The "+" and "*" registers are one and the same and by
> default you can use <D-x>/<D-c>/<D-v> to cut/copy/paste just like in
> any other Mac app.
OKi, here we go:
1. This is on MacVim 7.2 stable 1.2 (33.3)
2. +clipboard is set when I run :version
3. Select/yank, select/Cmd-C, select/copy-icon only copy the text
within
MacVim -- none of these things make it to the clipboard
4. Programmatic copy by assigning a value to @+ doesn't copy the
text to the system clipboard either
For no. 4, here is the complete code snippet that tries to copy the
text to the clipboard:
for line in output
let nPtr = match(line, s:PASTE_RESPONSE_FLAG)
if nPtr != -1
let location = s:ParseLocationFrom(line)
echomsg location
if has("gui_running")
let clipboardContents = split(location, " ")
let @+ = clipboardContents[0x01]
endif
return
endif
endfor
The only case that I care about is (4), because this emerged from a
script that I wrote with some of the guys in #vim/Freenode and that we
want to publish this weekend. It'd be awesome if we could report "the
script was tested and passed across all platforms" or something along
those lines. We are able to copy to the clipboard with gvim just fine
across all platforms.
Here is my .vimrc:
http://eugeneciurana.com/pastebin/pastebin.php?show=40955
And my .gvimrc:
http://eugeneciurana.com/pastebin/pastebin.php?show=40957
One more thing: gvim copies to the clipboard fine on the same Mac
where I'm testing this. I can assign @+ = "whatever" and it'll make
it to the clipboard. So this problem appears to be isolated to MacVim
only.
Thanks in advance and have a great weekend,
pr3d4t0r
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---