aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim/.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index a194b52..a7ccc6f 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -89,6 +89,9 @@ autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buff
" make ; work like : for commands. lazy shifting
nnoremap ; :
+" json pretty print
+command J :%!python -mjson.tool
+
" enable file type detection and do language-dependent indenting
if has("autocmd")
filetype on