commit 646e09214afc02c747ab411612ff8365e66e5f1d
parent de48df48a6ddb361d1a39b9f958664ae36c89464
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 17 Feb 2019 14:35:01 +0100
Fix JsonSimplifyObject
Former-commit-id: 06bde596db60ae9fe0f3ed956e0e2d398abe1ab5
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/commands.vimrc b/vim/commands.vimrc
@@ -13,7 +13,7 @@ command! Diffc w !git diff % -
command! Fuckwindows %s/
//g
command! Hexedit %!xxd
command! Unhex %!xxd -r
-command! JsonSimplifyObject %s/^\(\s\{16}\){\n\s\{20\}\(.*\)\n\s\{16\}}\(,\?\)/\1{\2}\3
+command! JsonSimplifyObject %s/^\(\s\{10}\){\n\s\{12\}\(.*\)\n\s\{10\}}\(,\?\)/\1{ \2 }\3
command! BeautifyJson %!python -m json.tool
command! Dos2unix .!dos2unix "%"
command! -nargs=1 -complete=command Redir silent call Redir(<f-args>)