Skip to main content
1 of 3
Wildcard
  • 37.5k
  • 30
  • 149
  • 284

You can do this from within Vim:

:w !pandoc -o file.pdf

Or even write the buffer into a complex pipeline:

:w !grep pattern | somecommand > file.txt

And then you can exit Vim without saving:

:q!
Wildcard
  • 37.5k
  • 30
  • 149
  • 284