I have the following autocommand in my vimrc for vimwiki:
autocmd BufWritePost *.md silent! VimwikiAll2HTML
The VimwikiAll2HTML triggers a custom script with
:! scriptname to process all the files in the wiki.
It works, but there is the annoyance of the
"Press ENTER or type command to continue" message that I want to suppress.
I tried this:
autocmd BufWritePost *.md set shortmess=a | set cmdheight=2 | silent! VimwikiAll2HTML | set shortmess=filnxtToOF | set cmdheight = 1
But the last two commands to reset the
cmdheight properties but they just get ignored. What's the proper way to suppress the "Press Enter" command? I also tried throwing a
<cr> in there but no luck.