Vim has compiler plugin feature which enables the user to write a compiler configuration, and then running :make will trigger the command, and errorformat will parse the output and will print any error in the quickfix. Vim already comes with many compilers configured out of the box. However, at any point, only one compiler is configured, and it is usually the compiler of the language that I work on.

In my case, I work with an environment that has multiple tools that could indicate issues/errors in the code. Consider java for example, I might run the compiler to compile the code, JUnit to run the tests, checkstyle, to check for any style issues, FindBug to find potential bugs, Fortify, to find security issues.

Suppose that I can find a compiler plugin for all of these tools, how can I use all of them together (maybe something like make build, make test, make checkstyle, make findbug, where each one of these commands uses a different plugin, thus different errorformat)?

Btw, I use neovim if that makes any difference.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.