ide java vim_Use Vim as a Java IDE

Blogs > Use Vim as a Java IDE

I am a vimmer and a java developer. Here are some useful plugins for developing java in vim/neovim.

95830071_1.png

Project managerunite - file and code fuzzy founder.

b7448dd3b5d96edfbdcf6904474df3c4.gif

The unite or unite.vim plug-in can search and display information from arbitrary sources like files, buffers, recently used files or registers. You can run several pre-defined actions on a target displayed in the unite window.

The difference between unite and similar plug-ins like fuzzyfinder, ctrl-p or ku is that unite provides an integration interface for several sources and you can create new interfaces using unite.

You can also use unite with ag, that will make searching faster.

config unite with ag or other tools support

if executable('hw') ' Use hw (highway) ' https://github.com/tkengo/highway let g:unite_source_grep_command = 'hw' let g:unite_source_grep_default_opts = '--no-group --no-color' let g:unite_source_grep_recursive_opt = ''elseif executable('ag') ' Use ag (the silver searcher) ' https://github.com/ggreer/the_silver_searcher let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts =\ '-i --line-numbers --nocolor ' .\ '--nogroup --hidden --ignore ' .\ '''.hg'' --ignore ''.svn'' --ignore' .\ ' ''.git'' --ignore ''.bzr''' let g:unite_source_grep_recursive_opt = ''elseif executable('pt') ' Use pt (the platinum searcher) ' https://github.com/monochromegane/the_platinum_searcher let g:unite_source_grep_command = 'pt' let g:unite_source_grep_default_opts = '--nogroup --nocolor' let g:unite_source_grep_recursive_opt = ''elseif executable('ack-grep') ' Use ack ' http://beyondgrep.com/ let g:unite_source_grep_command = 'ack-grep' let g:unite_source_grep_default_opts =\ '-i --no-heading --no-color -k -H' let g:unite_source_grep_recursive_opt = ''elseif executable('ack') let g:unite_source_grep_command = 'ack' let g:unite_source_grep_default_opts = '-i --no-heading' .\ ' --no-color -k -H' let g:unite_source_grep_recursive_opt = ''elseif executable('jvgrep') ' Use jvgrep ' https://github.com/mattn/jvgrep let g:unite_source_grep_command = 'jvgrep' let g:unite_source_grep_default_opts =\ '-i --exclude ''\.(git|svn|hg|bzr)''' let g:unite_source_grep_recursive_opt = '-R'elseif executable('beagrep') ' Use beagrep ' https://github.com/baohaojun/beagrep let g:unite_source_grep_command = 'beagrep'endifvimfiler - A powerful file explorer implemented in Vim script

Use vimfiler as default file explorerfor more information, you should read the documentation of vimfiler.

let g:vimfiler_as_default_explorer = 1call vimfiler#custom#profile('default', 'context', {\ 'explorer' : 1,\ 'winwidth' : 30,\ 'winminwidth' : 30,\ 'toggle' : 1,\ 'columns' : 'type',\ 'auto_expand': 1,\ 'direction' : 'rightbelow',\ 'parent': 0,\ 'explorer_columns' : 'type',\ 'status' : 1,\ 'safe' : 0,\ 'split' : 1,\ 'hidden': 1,\ 'no_quit' : 1,\ 'force_hide' : 0,\ })tagbar - Vim plugin that displays tags in a window, ordered by scope

Code formattingneoformat - A (Neo)vim plugin for formatting code.

For formatting java code, you also nEed have uncrustify or astyle in your PATH.BTW, the google’s java formatter also works well with neoformat.

Code completionjavacomplete2 - Updated javacomplete plugin for vim Demo

95830071_2.gif Generics demo

95830071_3.gif

deoplete.nvim - Dark powered asynchronous completion framework for neovim

neocomplete.vim - Next generation completion framework after neocomplcache

Syntax lintneomake - Asynchronous linting and make framework for Neovim/Vim

I am maintainer of javac maker in neomake, the javac maker support maven project, gradle project or eclipse project.also you can set the classpath.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值