Skip to content

Instantly share code, notes, and snippets.

@tacahiroy
Last active December 10, 2015 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacahiroy/4459707 to your computer and use it in GitHub Desktop.
Save tacahiroy/4459707 to your computer and use it in GitHub Desktop.
.vimrc settings for validating a JSON file
" JSON (Chef)
autocmd BufRead,BufNewFile knife-edit-*.js,*.json setlocal filetype=javascript.json
autocmd FileType *json* setlocal makeprg=python\ -mjson.tool\ 2>&1\ %\ >\ /dev/null
\| setlocal errorformat=%m:\ line\ %l\ column\ %c\ %.%#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment