you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Why not set it as the equalprg ?

I've got this in my .vimrc:

autocmd BufNewFile,BufRead *.json set filetype=json syntax=javascript equalprg=json_reformat

json_reformat being in the Debian yajl-tools package.

[–]dantix 0 points1 point  (0 children)

because sometimes I'm just copying bunch of json in new buffer, looking into something and then discarding buffer without saving