1

This is very similar to how-to-run-bash-command-over-current-file-and-replace-buffer-with-result

But I need to know how I can access current buffer when the file does not exist? i.e.

  1. I open vim
  2. goto insert mode e,g, press : i
  3. paste a json, possibly incomplete
  4. Run the command !% jq

For now I get output as error from jq.

0 Answers0