syntax enable set guifont Sans 16 set tabstop set shiftwidth set smart

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
syntax enable
set guifont=Sans\ 16
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set softtabstop=4
set autoindent
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufWritePre *.py normal m`:%s/\s\+$//e
autocmd FileType c,cpp,java,php autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
source /home/avn/.vim/python.vim
autocmd BufRead Makefile* set noexpandtab
autocmd BufRead debian/rules set noexpandtab