From 0a8c5e1352dc909029b89a4de95e146b51e06f91 Mon Sep 17 00:00:00 2001 From: Konstantin Bukley Date: Sun, 21 Feb 2021 22:11:14 +0200 Subject: [PATCH] vim: xmllint/jq integration --- vim/.vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vim/.vimrc b/vim/.vimrc index 5c89266..6cae44f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -281,6 +281,9 @@ if has("autocmd") au BufNewFile,BufRead *.docker setl ft=Dockerfile + au FileType xml setlocal equalprg=xmllint\ --format\ --recover\ -\ 2>/dev/null + au FileType json setlocal equalprg=python\ -m\ json.tool + " Hide statusline au! FileType fzf au FileType fzf set laststatus=0 noshowmode noruler @@ -475,7 +478,6 @@ nnoremap b (expand('%') =~ 'NERD_tree' ? "\\" : nnoremap gl (expand('%') =~ 'NERD_tree' ? "\\" : '').":Commits\" nnoremap a :A -nnoremap s :Switch nnoremap x :ALEFix nnoremap n :NERDTreeToggle nnoremap N :NERDTreeFind