diff --git a/roles/dotfiles/files/vimrc b/roles/dotfiles/files/vimrc index 2896409..35fe003 100644 --- a/roles/dotfiles/files/vimrc +++ b/roles/dotfiles/files/vimrc @@ -9,6 +9,8 @@ au BufNewFile,BufRead *.go set tabstop=4 softtabstop=4 shiftwidth=4 \ expandtab autoindent fileformat=unix au BufNewFile,BufRead *.toml set tabstop=4 softtabstop=4 shiftwidth=4 \ expandtab autoindent fileformat=unix +au BufNewFile,BufRead *.json set tabstop=2 softtabstop=2 shiftwidth=2 + \ expandtab autoindent fileformat=unix au BufNewFile,BufRead *.yaml set tabstop=2 softtabstop=2 shiftwidth=2 \ expandtab autoindent fileformat=unix au BufNewFile,BufRead *.html,*.css set tabstop=2 softtabstop=2 shiftwidth=2 @@ -34,7 +36,9 @@ augroup sh autocmd FileType sh :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix augroup end autocmd FileType dockerfile :set tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix +autocmd FileType nginx :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab autoindent fileformat=unix autocmd FileType gitcommit :set spell +autocmd FileType markdown :set spell " vim-plug " :PlugInstall to install new one call plug#begin('~/.vim/plugged')