From 2d63595ce945d88a42673d97bf546f6b45f31c17 Mon Sep 17 00:00:00 2001 From: lhark Date: Tue, 10 Jul 2018 15:37:04 -0400 Subject: [PATCH] [vimrc] Fix blocks in switch case indentation --- vim/after/ftplugin/c.vim | 2 +- vimrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim index db12b07..68b4944 100644 --- a/vim/after/ftplugin/c.vim +++ b/vim/after/ftplugin/c.vim @@ -3,7 +3,7 @@ " Indentation setlocal cindent setlocal si -setlocal cinoptions=:0 +setlocal cinoptions+=:0 setlocal shiftwidth=4 setlocal noexpandtab diff --git a/vimrc b/vimrc index 30ce0bb..eda4294 100644 --- a/vimrc +++ b/vimrc @@ -312,6 +312,7 @@ set autoindent set copyindent set smartindent set cinwords=except,finally,def,class,with,do,if,elif,else,for,while,try,switch +set cinoptions+=l1 set modelines=1 set shiftwidth=4 set softtabstop=4