Description
When I run :Gist
, it seems to yank the pasted URL into ""
. For reference, I have not defined g:gist_clip_command
. From reading the code, it appears to yank into ""
if has('unix') && !has('xterm_clipboard')
. This is a bad condition. I'm running MacVim, which maps "+
(and "*
) to the system clipboard, similar to xterm, but MacVim does not define the +xterm_clipboard
feature (possibly because it does not automatically copy selections to "*
, because OS X does not have a selection clipboard).
I'd recommend changing this to just being has('clipboard')
, which is the condition you use in s:GistGet
to determine if you should yank to "+
. This should be sufficient to determine if there is a "+
register, and if there is, then you should be yanking to it.