From f83547919e9a1efad87e4b2be6eb53f0aac2a641 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 13 Feb 2023 17:56:41 +0300 Subject: [PATCH] [vim] json files config --- vim/ftplugin/json.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/ftplugin/json.vim b/vim/ftplugin/json.vim index bd55dee..035bbc4 100644 --- a/vim/ftplugin/json.vim +++ b/vim/ftplugin/json.vim @@ -1,2 +1,13 @@ +" au! BufRead,BufNewFile *.json set filetype=json +" augroup json_autocmd +" autocmd! +" autocmd FileType json set autoindent +" autocmd FileType json set formatoptions=tcq2l +" autocmd FileType json set textwidth=78 shiftwidth=2 +" autocmd FileType json set softtabstop=2 tabstop=2 +" autocmd FileType json set expandtab +" autocmd FileType json set foldmethod=syntax +" augroup END set conceallevel=0 let g:indentLine_setConceal = 0 +autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab