vim 格式化 json 字符串
" json
let mapleader = "\<space>"
map <Leader>jf :%!python -m json.tool<CR>
command! JM :execute '%!python -m json.tool' | :execute '%!python -c "import re,sys;sys.stdout.write(re.sub(r\"\\\u[0-9a-f]{4}\", lambda m:m.group().decode(\"u.
原创
2021-06-19 11:25:10 ·
358 阅读 ·
0 评论