vimrc: add detectindent
[shutils.git] / dotfiles / vim / .vimrc
index 78f58a1b9fd69973bd94f306dbc9fee1382ad724..ecb9f004faa9463fb45525d6643331f657fba8f1 100644 (file)
@@ -20,7 +20,6 @@ filetype plugin indent on
 
 set modeline
 set autoindent
-"set tabstop=4
 set number
 set bs=2
 
@@ -62,7 +61,9 @@ au Filetype python,tex,c,cpp,cs,objc,java syn match BadWhitespace /\s\+$/ contai
 " set list to activate 
 set listchars=tab:»­,trail:·,eol:$
 
-
+au Filetype python,tex,c,cpp,cs,objc,java :DetectIndent
+"let g:detectindent_preferred_expandtab = 1
+"let g:detectindent_preferred_indent = 4
 
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""