S!V!G!
VimL
command! SVGO :call<SID>OptimizeSVG()function!s:OptimizeSVG()letcfile= expand('<cfile>')call setreg('d', substitute(getline('.'),cfile, system('svgo -i ' . cfile . ' -o - --datauri=base64'),''))
normal! V"dp
endfunction
S!V!G!
command! SVGO :call<SID>OptimizeSVG()function!s:OptimizeSVG()letcfile= expand('<cfile>')call setreg('d', substitute(getline('.'),cfile, system('svgo -i ' . cfile . ' -o - --datauri=base64'),''))
normal! V"dp
endfunction