Fix indentation for some files
a6d311805120e7814b09148c325cd59d0a31e015
1 parent
1c71afcd
.vimrc
+2 -1
| 58 | 58 | ||
| 59 | 59 | " Per file-type indentation |
|
| 60 | 60 | au FileType haskell set sts=4 sw=4 expandtab |
|
| 61 | 61 | au FileType javascript set sts=4 sw=4 expandtab |
|
| 62 | 62 | au FileType go set ts=4 sw=4 noexpandtab |
|
| 63 | - | au FileType c set sw=4 noexpandtab |
|
| 63 | + | au FileType c,cpp set sw=4 noexpandtab |
|
| 64 | 64 | au FileType lua set sw=2 expandtab |
|
| 65 | + | au FileType sh set sw=2 expandtab |
|
| 65 | 66 | ||
| 66 | 67 | " Remove trailing whitespace on save |
|
| 67 | 68 | autocmd BufWritePre * call s:StripTrailing() |
|
| 68 | 69 | function! s:StripTrailing() |
|
| 69 | 70 | let l = line(".") |