From 5bb4fda4d283d61da047a9da3d8134316cfe0d5e Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 30 Aug 2022 14:29:18 -0400 Subject: [PATCH] Added minify script to json --- vim/ftplugin/json.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/ftplugin/json.vim b/vim/ftplugin/json.vim index 01b6efa..15f79de 100644 --- a/vim/ftplugin/json.vim +++ b/vim/ftplugin/json.vim @@ -1,2 +1,4 @@ +com! MinifyJSON :%!python3 -c 'import json, sys;json.dump(json.load(sys.stdin), sys.stdout)' com! FormatJSON :%!python3 -m json.tool map = :FormatJSON +set foldmethod=syntax