vim/autoload/ft/compileeruby.vim

10 lines
176 B
VimL
Raw Normal View History

2018-12-12 09:02:12 +00:00
function! ft#compileeruby#CompileEruby(reload) abort
silent execute 'update | edit'
execute '!erb -T - % > %:r.vim'
if a:reload
source $MYVIMRC
endif
endfunction