this repo has no description
1if exists('g:loaded_pastebin')
2 finish
3endif
4let g:loaded_pastebin = 1
5
6function s:pastebin(line1, line2) abort
7 let l:filename = expand("%:p:t")
8 let l:lines = getline(a:line1, a:line2)
9 let l:url = trim(system("ubin", l:lines))
10
11 let @+ = l:url
12
13 echom "URL: ".l:url
14endfunction
15
16command! -range=% Ubin call <SID>pastebin(<line1>, <line2>)