Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link
Owner Author

commented Jan 28, 2015

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
You can’t perform that action at this time.