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