sponsor Vim development Vim logo Vim Book Ad

jdaddy.vim : JSON manipulation and pretty printing

 script karma  Rating 39/18, Downloaded by 1609  Comments, bugs, improvements  Vim wiki

created by
Tim Pope
 
script type
utility
 
description
Check out these *must have* mappings for working with JSON in Vim:

* `aj` provides a text object for the outermost JSON object, array, string, number, or keyword.
* `gqaj` "pretty prints" (wraps/indents/sorts keys/otherwise cleans up) the JSON construct under the cursor.
* `gwaj` takes the JSON object on the clipboard and extends it into the JSON object under the cursor.

There are also `ij` variants that target innermost rather than outermost JSON construct.

https://github.com/tpope/vim-jdaddy
 
install details
Extract in ~/.vim (~\vimfiles on Windows).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
jdaddy.zip 1.0 2014-02-13 7.0 Tim Pope Initial upload
ip used for rating: 3.144.35.148

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github