Browse Source

Correct switch case indentation in C++ & Java too

merge-requests/1/merge
lhark 9 years ago
parent
commit
a9847125ad
  1. 1
      vim/after/ftplugin/cpp.vim
  2. 2
      vim/after/ftplugin/java.vim

1
vim/after/ftplugin/cpp.vim

@ -3,6 +3,7 @@
" Indentation
setlocal autoindent
setlocal si
setlocal cinoptions=:0
setlocal shiftwidth=4
setlocal noexpandtab

2
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

Loading…
Cancel
Save