Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 740 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 740 Bytes

JSON Formatter Plugin for VIM

A VIM plugin for formatting saved JSON file.

Installation

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 -g

Usage

Call this function below:

:call JsonFormatter()

json-formatter.vim also has added an nnoremap for you:

<leader>json

So you only type <leader> and then type json, this plugin will work for you.

Configuration

You can also DIY yor own keymap, just configure it as blow:

nnoremap <YOUR KEYs> :call JsonFormatter()<cr>

Contribution

You're welcome to fork and push requests!