summaryrefslogtreecommitdiff
path: root/plugin/indent.vim
blob: 8191d82fa73e88fedc9ad071eaa947485e39cdaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
" indent.vim
" Defines indentation behavior

set softtabstop=4
set shiftwidth=4
set tabstop=4
set expandtab
set smarttab

set autoindent



highlight BadWhitespace ctermbg=red guibg=red
set hlsearch


" make backspaces more powerfull
set backspace=indent,eol,start




"js stuff"
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2
autocmd FileType python set tabstop=2 softtabstop=2 shiftwidth=2
autocmd FileType python set textwidth=79 expandtab autoindent


set fileformat=unix

au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
"
"