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.
- I open vim
- goto insert mode e,g, press :
- paste a json, possibly incomplete
- Run the command
For now I get output as error from jq.