Added minify script to json
This commit is contained in:
parent
09f3af9543
commit
5bb4fda4d2
|
@ -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
|
com! FormatJSON :%!python3 -m json.tool
|
||||||
map <buffer><leader>= :FormatJSON<cr>
|
map <buffer><leader>= :FormatJSON<cr>
|
||||||
|
set foldmethod=syntax
|
||||||
|
|
Loading…
Reference in New Issue
Block a user