Last active
December 10, 2015 16:18
-
-
Save tacahiroy/4459707 to your computer and use it in GitHub Desktop.
.vimrc settings for validating a JSON file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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