Skip to content

Commit

Permalink
Add command for pretty-formatting JSON strings
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-kobrzak committed May 11, 2022
1 parent 481d656 commit 84402a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ set omnifunc=syntaxcomplete#Complete
nnoremap <silent> vv <C-w>v
xnoremap y "*y
" Format as JSON
nnoremap <C-j> :%!jq .<CR>
" Highlight search results
set hlsearch
" Map escape to turn off search highlighting
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ git submodule update

**Ctrl-t** - show file system explorer

**Ctrl-j** - pretty format a JSON string

**Ctrl-p** - free text file name search

**Ctrl-n** - select multiple instances of a selected word (like SublimeText multiple
Expand Down

0 comments on commit 84402a1

Please sign in to comment.