Skip to content

dfishburn/json-formatter.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A VIM plugin for formatting saved JSON file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%