Add indentation for Makefile .c .cpp .go

This commit is contained in:
Kevin Cotugno 2020-11-19 06:28:11 -07:00
parent b1c9ea5964
commit 4540abf4e0

View File

@ -62,13 +62,21 @@ set listchars=tab:――,space:·,trail:·
let g:NoClean = ['diff']
augroup filetypes
autocmd BufRead,BufNewFile
augroup indentation
autocmd BufRead,BufNewFile
\ Makefile,
\*.c,
\*.cpp,
\*.go
\ set tabstop=8 shiftwidth=8 noexpandtab
autocmd BufRead,BufNewFile
\ *.cs,
\*.java
\ set tabstop=4 shiftwidth=4 expandtab
autocmd BufRead,BufNewFile
autocmd BufRead,BufNewFile
\ *.rb,
\*.css,
\*.js,
@ -76,6 +84,7 @@ autocmd BufRead,BufNewFile
\*.coffee,
\*.erb,
\*.html,
\*.html.tmpl,
\*.json,
\*.tf,
\*.tfvars,