commit f8f7f32679e181a64a94bb4cd7fb494ff75755ac
parent 947435d7448a79b9ee419cea13cad3510c2b2163
Author: Lukas Joswiak <lukas@lukasjoswiak.com>
Date: Tue, 24 Sep 2019 22:08:14 -0700
Add C indentation rule
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.vimrc b/.vimrc
@@ -45,3 +45,6 @@ set hlsearch
" Indent with 2 spaces in cpp files
autocmd Filetype cpp setlocal shiftwidth=2 softtabstop=2 expandtab
+
+" Indent with 2 spaces in C files
+autocmd Filetype c setlocal shiftwidth=2 softtabstop=2 expandtab