Try to get checkstyle running via makeprg.
In OS X, anyway, this isn't working. I suspect an issue with temp file handling in MacVim but haven't yet found anything definitive.
This commit is contained in:
parent
3939b5eeca
commit
36c552d959
1 changed files with 7 additions and 0 deletions
7
java.vim
7
java.vim
|
@ -7,3 +7,10 @@ function JavaImpClean()
|
|||
endfunction
|
||||
:command JavaImpClean exec JavaImpClean()
|
||||
:nnoremap <F7> :JavaImpClean<CR>
|
||||
|
||||
"let makeprg = 'java -cp /opt/boxen/homebrew/opt/checkstyle/libexec/checkstyle-6.0-all.jar -c '. vimrc_git . '/checkstyle.xml %:p'
|
||||
let makeprg = 'checkstyle -c '. vimrc_git . '/checkstyle.xml ./%'
|
||||
|
||||
autocmd FileType java let &makeprg=escape(makeprg, ' ')
|
||||
autocmd FileType java set errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#
|
||||
|
||||
|
|
Loading…
Reference in a new issue