From c7db514993a0df014fdaf2b4ce71b7b76b3b8ddd Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 May 2018 11:03:20 -0700 Subject: [vimrc] update settings for some filetypes --- vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 74e1dc3..6822361 100644 --- a/vimrc +++ b/vimrc @@ -33,7 +33,14 @@ call plug#end() " configure ack.vim to use silver surfer let g:ackprg = 'ag --vimgrep --smart-case' -autocmd BufNewFile,BufRead *.py setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab +" Python settings +autocmd BufNewFile,BufRead *.py setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab + +" JSON settings +autocmd BufNewFile,BufRead *.json setlocal tabstop=2 softtabstop=2 expandtab + +" Dockerfile settings +autocmd FileType dockerfile set noexpandtab " Exit on j imap jj -- cgit 1.4.1