Em :help Gist , há uma configuração que copia automaticamente o link gist para sua área de transferência com :Gist -c
If you set g:gist_clip_command, gist.vim will copy the gist code with option '-c'.
Mac:
let g:gist_clip_command = 'pbcopy'
Linux:
let g:gist_clip_command = 'xclip -selection clipboard'
Others (cygwin?):
let g:gist_clip_command = 'putclip'
Adicione isso ao seu ~/.vimrc e pronto.
Editar:
Encontrou uma solução hackeada.
Vá para gist.vim e encontre essa função.
function! s:GistPost(user, token, content, private)
" find GistID: in content, then we should just update
...
let location = substitute(location, '^[^:]\+: ', '', '')
if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/'
redraw
echo 'Done: '.location
else
...
return location
endfunction
Altere echo para echomsg .
if len(location) > 0 && location =~ '^\(http\|https\):\/\/gist\.github\.com\/'
redraw
echomsg 'Done: '.location
Agora reinicie o vim e, depois de inserir :Gist , digite :message para obter o link do histórico de mensagens. O histórico de mensagens registra tudo de echomsg e echoerr para essa sessão.