From d553c825d9ff2258257150d5ccdc69a8168e8d97 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 27 Aug 2024 20:21:17 +0100 Subject: [PATCH] Format JSON file in vim --- source/_notes/17.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 source/_notes/17.md diff --git a/source/_notes/17.md b/source/_notes/17.md new file mode 100644 index 0000000..47d0145 --- /dev/null +++ b/source/_notes/17.md @@ -0,0 +1,9 @@ +--- +title: "Format JSON file in vim" +date: 2024-08-27 20:21:17 +tags: [Vim, Neovim, JSON, jq] +links: + - https://vi.stackexchange.com/a/19950 +--- + +Use `:%!jq` to format/beautify a JSON file within vim using `jq`.