From b9749714e0a1dcaffb9ed94df4afdcebbcddc9ea Mon Sep 17 00:00:00 2001 From: mitsuo Date: Tue, 30 Nov 2021 05:56:31 -0500 Subject: Add comment about pretty-print JSON --- vim/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 83aab15..2e04dcc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -174,6 +174,14 @@ nmap l " Ref.: vim.fandom.com vmap gt :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g +" +" Not mapings but useful commands: +" +" 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.) +" :%!jq . + " Yanking and pasting " ---------------------------------------------------------------------- -- cgit v1.2.3