Joined March 2013
·

Christoph Wagner

Los Angeles, CA
·
·

Posted to Format JSON in vim over 1 year ago

My version:

nmap =j :%!python -m json.tool<CR>

Since = is the VIM command to format text (but only in select or visual mode), I figured this would be easy to remember. All I have to do now is type =j to format a JSON file. Neat.

Achievements
71 Karma
0 Total ProTip Views