summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormitsuo <[email protected]>2021-11-30 05:56:31 -0500
committermitsuo <[email protected]>2021-11-30 05:56:31 -0500
commitb9749714e0a1dcaffb9ed94df4afdcebbcddc9ea (patch)
treebcfb7beca4e9336fc7e733dc0e28a932cc84cc1f
parente5674beea1a6de112de27ae7119de8e908e18f90 (diff)
downloaddotfiles-b9749714e0a1dcaffb9ed94df4afdcebbcddc9ea.tar.gz
dotfiles-b9749714e0a1dcaffb9ed94df4afdcebbcddc9ea.tar.bz2
dotfiles-b9749714e0a1dcaffb9ed94df4afdcebbcddc9ea.zip
Add comment about pretty-print JSON
-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
" ----------------------------------------------------------------------