vimrc: add rust filetype parameters (opinionated)

This commit is contained in:
surtur 2021-11-10 01:15:26 +01:00
parent 063420cb1f
commit 60e8b840c4
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -357,6 +357,9 @@ au BufNewFile,BufRead *.js
au FileType sway setl textwidth=79 au FileType sway setl textwidth=79
\ tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent \ tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab autoindent
au FileType rust setl
\ 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