Fix filetype indent setting
247524a4e50f087c1d3df59340fa9b573e6248c9
1 parent
016ec077
.vimrc
+7 -7
| 94 | 94 | write |
|
| 95 | 95 | endif |
|
| 96 | 96 | endfunction |
|
| 97 | 97 | ||
| 98 | 98 | " Per file-type indentation |
|
| 99 | - | au FileType haskell set sts=4 sw=4 expandtab |
|
| 100 | - | au FileType javascript set sts=4 sw=4 expandtab |
|
| 101 | - | au FileType go set ts=4 sw=4 noexpandtab |
|
| 102 | - | au FileType c,cpp set sw=4 noexpandtab |
|
| 103 | - | au FileType lua set sw=2 expandtab |
|
| 104 | - | au FileType sh,zsh set ts=2 sw=2 noexpandtab |
|
| 105 | - | au FileType vim,ruby set sts=2 sw=2 expandtab |
|
| 99 | + | au FileType haskell setlocal sts=4 sw=4 expandtab |
|
| 100 | + | au FileType javascript setlocal sts=4 sw=4 expandtab |
|
| 101 | + | au FileType go setlocal ts=4 sw=4 noexpandtab |
|
| 102 | + | au FileType c,cpp setlocal sw=4 noexpandtab |
|
| 103 | + | au FileType lua setlocal sw=2 expandtab |
|
| 104 | + | au FileType sh,zsh setlocal ts=2 sw=2 noexpandtab |
|
| 105 | + | au FileType vim,ruby setlocal sts=2 sw=2 expandtab |
|
| 106 | 106 | ||
| 107 | 107 | if executable('haskell-tags') |
|
| 108 | 108 | au BufWritePost *.hs silent !haskell-tags % '.tags' |
|
| 109 | 109 | au BufWritePost *.hsc silent !haskell-tags % '.tags' |
|
| 110 | 110 | endif |