by executesorder66 · 9y ago · 0 comments
Find references : try [0] or [1]
go to definition (I haven't searched for this functionality, so I don't know if it exists)
[0] https://github.com/asenac/vim-opengrok [1] https://stackoverflow.com/a/9616315
It's a pretty fundamental code navigation feature. You said "There hasn't been one feature that and IDE has that I used, which can't be achieved in vim (or via a plugin)", but it seems you haven't used any significant IDE features. Have you tried refactors like "rename" (method, class, variable, field) or "extract method"? Have you tried searching for overriding methods? Have you tried inlining variables or extracting expressions to variables? Have you tried debugging? Evaluating expressions during debug is something you can do in Java and Eclipse [1] / IDEA [2].
Or, if you want something really impressive, how about Async stacktraces?[3] It shows all the frames for both the spawning thread and the spawned thread in the same stack during debug.
There are a lot of really cool features in IDEs like IntelliJ IDEA have which are impossible to achieve with plugins in VIM, simply because IDEA parses the code and works at AST level. Not only that, but there are hundreds of inspections, automatic fixes and refactors which work perfectly (or almost perfectly) on top of that AST.
[1] http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse....
[2] https://www.jetbrains.com/help/idea/evaluating-expressions.h...
[3] https://blog.jetbrains.com/idea/2017/10/intellij-idea-2017-3...