From f09b5e4e2804978b0ec6d2783ac6bed4becd4b11 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Mon, 5 Dec 2022 18:12:20 +0100 Subject: [PATCH] vimrc: additional file type configs --- roles/dotfiles/files/vimrc | 4 ++++ 1 file changed, 4 insertions(+) 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')