From e69056d6202c23d529e43c0f4d7230274de8fd14 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 18 Sep 2023 12:36:11 +0200 Subject: [PATCH] vimrc: explicitly set shiftwidth for the C file type If you start editing a shell script and then open a buffer with a C file, the shiftwidth set by the previous autocommand for the sh file type would not be reset to the original (global) 8ch. Let's fix this by explicitly setting the shiftwidth in the C file type autocommand as well. --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 9a512ec6c8c..70d063d9caa 100644 --- a/.vimrc +++ b/.vimrc @@ -18,4 +18,4 @@ set makeprg=GCC_COLORS=\ make set tw=79 au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab au FileType sh set tw=109 shiftwidth=4 smarttab -au FileType c set tw=109 +au FileType c set tw=109 shiftwidth=8