Add json to indent formatting

This commit is contained in:
Sonny 2018-07-16 21:44:00 +02:00
parent 8b85b30cd1
commit eb12ff9328
2 changed files with 2 additions and 10 deletions

View file

@ -18,7 +18,7 @@ syntax on
set hidden
" file specific formatting
autocmd Filetype python,bash,sh,java,php setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
autocmd Filetype python,bash,sh,java,php,json setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
autocmd Filetype css,html,htmldjango,javascript,yaml setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent
" search down into subfolders
@ -31,9 +31,6 @@ set wildmenu
" use normal backspace behavior
set backspace=2
set t_ut=
set t_Co=256
" colorscheme
if exists('+termguicolors')
set termguicolors
@ -41,7 +38,7 @@ if exists('+termguicolors')
endif
" Color trailing spaces with red color
highlight ExtraWhitespace ctermbg=red guibg=red
highlight ExtraWhitespace ctermbg=green guibg=green
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/