User Tools

Site Tools


linux:vim-json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:vim-json [2017/12/06 15:49] (current)
percy created
Line 1: Line 1:
 +====== Vim Pretty JSON ======
 +
 +
 +  :%!python -m json.tool
 +Or add to .vimrc
 +  au FileType json setlocal equalprg=python\ -m\ json.tool
 +
 +
 +
 +===== Refer =====
 +
 +  - https://​pascalprecht.github.io/​2014/​07/​10/​pretty-print-json-in-vim/​
 +  - https://​coderwall.com/​p/​tpfysw/​pretty-format-json-in-vim
  
/var/www/dokuwiki/wiki/data/pages/linux/vim-json.txt · Last modified: 2017/12/06 15:49 by percy