A VIM plugin for formatting saved JSON file.
Add this repo to your Vundle configuration:
Bundle "XadillaX/json-formatter.vim"Make sure you have node.js installed and then install module below:
$ npm install jjson -gCall this function below:
:call JsonFormatter()json-formatter.vim also has added an nnoremap for you:
<leader>jsonSo you only type <leader> and then type json, this plugin will work for you.
You can also DIY yor own keymap, just configure it as blow:
nnoremap <YOUR KEYs> :call JsonFormatter()<cr>You're welcome to fork and push requests!