From 3d5f2f2fa6269f8d6a1412cbbddbb538121b28f2 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sat, 25 Jun 2022 11:36:24 -0500 Subject: Add git-prompt.sh. Some distros require it E.g., Amazon Linux 2 --- vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 4920e0e..9905035 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -192,6 +192,8 @@ vmap gt :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g " Autoformat JSON jumbled data. (Selects the whole file as range to pass as " standard input to `jq .` which pretty prints JSON. Then replace range with " output.) +" Thankyou: https://stackoverflow.com/questions/26214156/how-to-auto-format-json-on-save-in-vim +nnoremap gJ :%!python3 -m json.tool " :%!jq . " NERDTree plugin -- cgit v1.2.3