When I edit the json file through vim, I use jq to format it. However, if the json is incomplete, the error message given by jq will be filled into the editing area of vim. Examples are as follows:
Json file:
{
"demo": nul
}
Execute instructions:
:%!jq .
result:
parse error: Invalid literal at line 3, column 0
How can I make vim automatically create a window to display jq error messages instead of directly covering my editing area? Every time such a situation occurs, the command must be executed: u This is very troublesome.
