summaryrefslogtreecommitdiff
path: root/plugin/indent.vim
blob: e9063d7c8549ee7aad58d0779481f22ab66295d5 (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
35
36
37
38
39
40
41
42
43
" indent.vim
" Defines indentation behavior

set softtabstop=2
set shiftwidth=2
set tabstop=2
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 javascript set omnifunc=javascriptcomplete#CompleteJS


"python stuff"
autocmd FileType python set tabstop=4 softtabstop=4 shiftwidth=4
autocmd FileType python set textwidth=79 expandtab autoindent
autocmd FileType python set omnifunc=pythoncomplete#Complete



"C/C++ stuff"
autocmd FileType c  set tabstop=4 softtabstop=4 shiftwidth=4
autocmd FileType c  set expandtab autoindent
autocmd FileType cpp  set tabstop=4 softtabstop=4 shiftwidth=4
autocmd FileType cpp  set expandtab autoindent

"Html stuff
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS



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