nvim/autoload_/ft/compileeruby.vim

10 lines
176 B
VimL
Raw Normal View History

2020-03-19 15:47:31 +00:00
function! ft#compileeruby#CompileEruby(reload) abort
silent execute 'update | edit'
execute '!erb -T - % > %:r.vim'
if a:reload
source $MYVIMRC
endif
endfunction