Skip to content

Instantly share code, notes, and snippets.

@mhartington
Created December 4, 2015 20:04
Show Gist options
  • Save mhartington/1d110947baaa9da39748 to your computer and use it in GitHub Desktop.
Save mhartington/1d110947baaa9da39748 to your computer and use it in GitHub Desktop.
function! s:PlaceholderImgTag(size)
let url = 'http://dummyimage.com/' . a:size . '/000000/555555'
let [width,height] = split(a:size, 'x')
execute "normal a<img src=\"".url."\" width=\"".width."\" height=\"".height."\" />"
endfunction
command! -nargs=1 PlaceholderImgTag call s:PlaceholderImgTag(<f-args>)
@unr
Copy link

unr commented Dec 4, 2015

👎 for not using fillmurray.com

❤️

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