Using external filter commands to reformat HTML

Share:

Listens: 0

Vimcasts

Technology


We can use pandoc as a filter to clean up WYSIWYG-generated HTML. Pandoc is a commandline program, but we can call it from inside Vim either using the bang Ex command, or by configuring the formatprg option to make the gq operator invoke pandoc.