Skip to content

:Gist should copy posted URL to "+, not "" #187

Closed
@lilyball

Description

@lilyball

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions