Add indentation for Makefile .c .cpp .go
This commit is contained in:
parent
b1c9ea5964
commit
4540abf4e0
@ -62,27 +62,36 @@ set listchars=tab:――,space:·,trail:·
|
|||||||
|
|
||||||
let g:NoClean = ['diff']
|
let g:NoClean = ['diff']
|
||||||
|
|
||||||
augroup filetypes
|
augroup indentation
|
||||||
autocmd BufRead,BufNewFile
|
autocmd BufRead,BufNewFile
|
||||||
\ *.cs,
|
\ Makefile,
|
||||||
\*.java
|
\*.c,
|
||||||
\ set tabstop=4 shiftwidth=4 expandtab
|
\*.cpp,
|
||||||
|
\*.go
|
||||||
|
\ set tabstop=8 shiftwidth=8 noexpandtab
|
||||||
|
|
||||||
autocmd BufRead,BufNewFile
|
|
||||||
\ *.rb,
|
autocmd BufRead,BufNewFile
|
||||||
\*.css,
|
\ *.cs,
|
||||||
\*.js,
|
\*.java
|
||||||
\*.jsx,
|
\ set tabstop=4 shiftwidth=4 expandtab
|
||||||
\*.coffee,
|
|
||||||
\*.erb,
|
autocmd BufRead,BufNewFile
|
||||||
\*.html,
|
\ *.rb,
|
||||||
\*.json,
|
\*.css,
|
||||||
\*.tf,
|
\*.js,
|
||||||
\*.tfvars,
|
\*.jsx,
|
||||||
\*.vue,
|
\*.coffee,
|
||||||
\*.yml,
|
\*.erb,
|
||||||
\*.yaml
|
\*.html,
|
||||||
\ set tabstop=2 shiftwidth=2 expandtab
|
\*.html.tmpl,
|
||||||
|
\*.json,
|
||||||
|
\*.tf,
|
||||||
|
\*.tfvars,
|
||||||
|
\*.vue,
|
||||||
|
\*.yml,
|
||||||
|
\*.yaml
|
||||||
|
\ set tabstop=2 shiftwidth=2 expandtab
|
||||||
|
|
||||||
autocmd FileType crontab set backupcopy=yes
|
autocmd FileType crontab set backupcopy=yes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user