Skip to content

Instantly share code, notes, and snippets.

@soramugi
Created January 28, 2015 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soramugi/4f6d95e05827018f2318 to your computer and use it in GitHub Desktop.
Save soramugi/4f6d95e05827018f2318 to your computer and use it in GitHub Desktop.
function! s:linktotag()
let tag = system("curl -s -F 'link=" . g:linktotag_link . "' https://linktotag.herokuapp.com")
execute ':normal! a ' . tag
call setpos('.', getpos('.'))
endfunction
command! -nargs=? Linktotag :call s:linktotag()
@soramugi
Copy link
Author

let g:linktotag_link = 'http://soramugi.tumblr.com/random'
:Linktotag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment