Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/json-formatter.vim
A VIM plugin for formatting saved JSON file.
https://github.com/xadillax/json-formatter.vim
Last synced: 28 days ago
JSON representation
A VIM plugin for formatting saved JSON file.
- Host: GitHub
- URL: https://github.com/xadillax/json-formatter.vim
- Owner: XadillaX
- License: mit
- Created: 2014-08-22T06:43:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-15T02:48:26.000Z (over 2 years ago)
- Last Synced: 2024-10-05T01:54:08.969Z (about 1 month ago)
- Language: Vim script
- Size: 16.6 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Formatter Plugin for Vim
A Vim plugin for formatting saved JSON file.
## Installation
### Vundle
Add this repository to your Vundle configuration:
```viml
Plugin "XadillaX/json-formatter.vim"
```Make sure you have [Node.js](https://nodejs.org/) installed and then install module below:
```shell
$ npm install -g jjson
```### Vim-Plug
Add this repository to your Vim-Plugn configuration:
```viml
Plug "XadillaX/json-formatter.vim", { "do": "npm install -g jjson" }
```### Dein
Add this repository to your Dein configuration:
```viml
call dein#add("XadillaX/json-formatter.vim", { "build": "npm install -g jjson" })
```## Usage
The `JSONFormatter` command will either format the JSON supplied or open the quickfix window and show any errors reported by the tools. Clicking or hitting `` on any of the lines reported in the quickfix window will take you directly to that location.
## Configuration
See https://github.com/XadillaX/json-formatter.vim/blob/c671c41/doc/json_formatter.txt#L78-L163
## Contribution
Issues and PRs are welcomed!