rc/vim/after/ftplugin/java.vim

16 lines
425 B
VimL

" Java specific config
" Indentation
setlocal autoindent
setlocal si
setlocal shiftwidth=4
setlocal noexpandtab
" Anonymous classes
setlocal cindent cinoptions& cinoptions+=j1 cinoptions+=:0
" Repair extends and implements Indentation
setlocal indentkeys& indentkeys+=0=extends indentkeys+=0=implements
"Syntax highlighting
let java_highlight_java_lang_ids=1
let java_highlight_functions="style"
let java_highlight_debug=1