From a6d9185e198be8a8125311779c1e60e8b2222ac8 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 12 Aug 2015 15:36:19 +0000 Subject: [PATCH] Set default tabs to 2 and make Python the exception to the rule --- .vimrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index af5c4d6..a7091d9 100644 --- a/.vimrc +++ b/.vimrc @@ -38,15 +38,13 @@ set noeb vb t_vb= " Set tabs to width 4. filetype plugin indent on -set shiftwidth=4 -set softtabstop=4 -set tabstop=4 +set shiftwidth=2 +set softtabstop=2 +set tabstop=2 set expandtab " language-specific settings -autocmd FileType html setlocal shiftwidth=2 softtabstop=2 tabstop=2 -autocmd FileType javascript setlocal shiftwidth=2 softtabstop=2 tabstop=2 -autocmd FileType ruby setlocal shiftwidth=2 softtabstop=2 tabstop=2 +autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4 " Allow backspacing over everything in insert mode. set backspace=indent,eol,start -- 2.20.1