summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 83aab15..2e04dcc 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -174,6 +174,14 @@ nmap <M-L> <C-W>l
" Ref.: vim.fandom.com
vmap gt :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR><C-L>
+"
+" 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
" ----------------------------------------------------------------------