Skip to content

Instantly share code, notes, and snippets.

@anchnk
Last active July 31, 2019 13:38
Show Gist options
  • Save anchnk/0fe49df4402b0ddff7e1e168c31e1ba3 to your computer and use it in GitHub Desktop.
Save anchnk/0fe49df4402b0ddff7e1e168c31e1ba3 to your computer and use it in GitHub Desktop.
My (Neo)Vim workflow tips & tricks

JSON Data Manipulation

Format JSON

:%!python -m json.tool
:set ft=json
:%s/    /  /g

Minify JSON

This one requires jq

:% jq -c .

Split Buffers

Split buffer number #

:sb#

Vertical split buffer number #

:vert sb#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment