User Tools

Site Tools


linux:vim-json
no way to compare when less than two revisions

Differences

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


linux:vim-json [2017/12/06 15:49] (current) – created percy
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