vimrc: set {c,h,cpp,hpp} formatting (redundantly)

This commit is contained in:
surtur 2022-08-09 17:46:35 +02:00
parent d472da82e2
commit 1c9adcdb20
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -551,15 +551,24 @@ au FileType rust setl
\ tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent ff=unix \ tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent ff=unix
au BufNewFile,BufRead *.py,*.pyw,*.pyx,?akefil* au BufNewFile,BufRead *.py,*.pyw,*.pyx,?akefil*
\ setlocal tabstop=4 shiftwidth=4 noexpandtab autoindent \ setlocal tabstop=4 shiftwidth=4 noexpandtab autoindent
\ fileformat=unix \ fileformat=unix
au FileType c setl ofu=ccomplete#CompleteCpp " Linux kernel style tabs - not for cpp
" au BufNewFile,BufRead,BufEnter *.c,*.h,*.cpp
au BufNewFile,BufRead,BufEnter *.c,*.h
\ set tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent
\ textwidth=79 fileformat=unix omnifunc=lsp#complete
au BufNewFile,BufRead,BufEnter *.cpp,*.h,*.hpp
\ set tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab autoindent
\ textwidth=79 fileformat=unix omnifunc=lsp#complete ft=cpp
" \ textwidth=79 fileformat=unix
au FileType cpp
\ set tabstop=4 shiftwidth=4 softtabstop=4 noexpandtab autoindent
\ textwidth=79 fileformat=unix omnifunc=lsp#complete
" \ textwidth=79 fileformat=unix
" Linux kernel style tabs
au BufNewFile,BufRead,BufEnter *.c,*.h,*.cpp
\ setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent
\ textwidth=79 fileformat=unix
au BufNewFile,BufRead,BufEnter *.tex au BufNewFile,BufRead,BufEnter *.tex
\ setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab autoindent \ setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab autoindent