From 0c21433700348306e898cc241357c871f6b33857 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Mon, 8 Jun 2015 00:23:55 -0700 Subject: [PATCH] Yank the gist url to @+ even if -xterm_clipboard This yanks the URL to the expected register in versions of Vim that have the +clipboard feature but not +xterm_clipboard (such as MacVim). --- autoload/gist.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/gist.vim b/autoload/gist.vim index dbfad7d..6683cd2 100644 --- a/autoload/gist.vim +++ b/autoload/gist.vim @@ -891,10 +891,10 @@ function! gist#Gist(count, bang, line1, line2, ...) abort endif if exists('g:gist_clip_command') call system(g:gist_clip_command, url) - elseif has('unix') && !has('xterm_clipboard') - let @" = url - else + elseif has('clipboard') let @+ = url + else + let @" = url endif endif endif