mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-07 09:07:36 +00:00
Fix Java Indentation regarding @
This commit is contained in:
parent
25277919de
commit
3e56220bc1
11
vim/dot_vim/after/indent/java.vim
Normal file
11
vim/dot_vim/after/indent/java.vim
Normal file
@ -0,0 +1,11 @@
|
||||
function! GetJavaIndent_improved()
|
||||
let theIndent = GetJavaIndent()
|
||||
let lnum = prevnonblank(v:lnum - 1)
|
||||
let line = getline(lnum)
|
||||
if line =~ '^\s*@.*$'
|
||||
let theIndent = indent(lnum)
|
||||
endif
|
||||
|
||||
return theIndent
|
||||
endfunction
|
||||
setlocal indentexpr=GetJavaIndent_improved()
|
Loading…
Reference in New Issue
Block a user