summary refs log tree commit diff
path: root/vimrc
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-05-08 11:03:20 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-05-08 11:03:20 -0700
commitc7db514993a0df014fdaf2b4ce71b7b76b3b8ddd (patch)
tree95ab47fc999d0b167f88638b37aa05c11d98de35 /vimrc
parent[vim] a couple of options (diff)
downloademacs.d-c7db514993a0df014fdaf2b4ce71b7b76b3b8ddd.tar.gz
[vimrc] update settings for some filetypes
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc9
1 files changed, 8 insertions, 1 deletions
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 <Esc>