From a9847125ad89fdf001aa0b41684dd7ac93f6e42e Mon Sep 17 00:00:00 2001 From: lhark Date: Mon, 24 Oct 2016 23:43:18 -0400 Subject: [PATCH] Correct switch case indentation in C++ & Java too --- vim/after/ftplugin/cpp.vim | 1 + vim/after/ftplugin/java.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim index f38f902..ad6cee7 100644 --- a/vim/after/ftplugin/cpp.vim +++ b/vim/after/ftplugin/cpp.vim @@ -3,6 +3,7 @@ " Indentation setlocal autoindent setlocal si +setlocal cinoptions=:0 setlocal shiftwidth=4 setlocal noexpandtab diff --git a/vim/after/ftplugin/java.vim b/vim/after/ftplugin/java.vim index 8ef7c8b..e7b7231 100644 --- a/vim/after/ftplugin/java.vim +++ b/vim/after/ftplugin/java.vim @@ -6,7 +6,7 @@ setlocal si setlocal shiftwidth=4 setlocal noexpandtab " Anonymous classes -setlocal cindent cinoptions& cinoptions+=j1 +setlocal cindent cinoptions& cinoptions+=j1 cinoptions+=:0 " Repair extends and implements Indentation setlocal indentkeys& indentkeys+=0=extends indentkeys+=0=implements