Skip to content

Instantly share code, notes, and snippets.

@soramugi
Created January 28, 2015 12:07
Embed
What would you like to do?
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