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