#!/bin/sh -eu
cat << 'EOF'
function! s:template(name, ...)
let command = "read!~/.vim/bin/" . a:name
for ix in range(0, len(a:000) - 1)
let command .= " " . shellescape(a:000[ix])
endfor
normal mT
execute command
normal 'T
endfunction
EOF
for base ; do
printf \
"command! -nargs=* I%s silent call s:template('%s', <f-args>)\n" \
"${base}" "${base}"
done