Corrected indentation comments
[dotfiles] / .vimrc
diff --git a/.vimrc b/.vimrc
index 8bb879a..af109ae 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -26,22 +26,22 @@ set foldenable
 set foldmethod=syntax
 set foldlevelstart=99
 
-" Show line numbers.
-set number
-set numberwidth=4
-
 " Scroll five lines ahead of cursor.
 set scrolloff=5
 
 " Turn off error bells and visual bell
 set noeb vb t_vb=
 
-" Set tabs to width 4.
-set softtabstop=4
-set tabstop=4
-set shiftwidth=4
+" Set tabs to width 2.
+filetype plugin indent on
+set shiftwidth=2
+set softtabstop=2
+set tabstop=2
 set expandtab
 
+" language-specific settings: tab width is 4 for python
+autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4
+
 " Allow backspacing over everything in insert mode.
 set backspace=indent,eol,start