From 9966d8cc98c3ce626075a6761a85db09b9a71801 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 28 Feb 2023 21:14:40 -0500 Subject: [PATCH] Updated vimrc with json formatting --- vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index b04de5a..fc8ca0c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -91,6 +91,9 @@ augroup MICHAEL autocmd Filetype yaml setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype markdown setlocal tw=79 fo+=t autocmd Filetype pandoc setlocal tw=79 fo+=t + " format json when writing a buffer. + autocmd BufWritePre *.json :silent %!jq augroup END +