[bugfix] autocompile won't work

This commit is contained in:
Klesh Wong 2020-11-26 12:57:50 +08:00
parent abfc0afc94
commit cde41d2359

View File

@ -272,8 +272,7 @@ fu! ToggleGroffMomAutoCompilation()
if g:GroffMomAutoCompilation
augroup GroffPdf
autocmd BufWritePost,FileWritePost *.mom
:call SilentOK("groff -Kutf8 -mom % > /tmp/tmp.ps && ps2pdf /tmp/tmp.ps %.pdf")
autocmd BufWritePost,FileWritePost *.mom :call SilentOK("groff -Kutf8 -mom % > /tmp/tmp.ps && ps2pdf /tmp/tmp.ps %.pdf")
augroup END
echo "Auto compilation for groff_mom enabled"
else