%
and !
%
resolves to the current filename. !
calls an external function. Together, %!
executes a command over the file, and replaces the current buffer with the output.:w
jq
, which I sometimes use to generate and manipulate test vectors:pandoc
. This is useful for exporting documentation for sharing with non-engineers.:%:
%! !external_fn
to replace buffer contents in-place.jq
to prettify:pandoc
: