Tip 10 | Running a Build and Navigating Failures |
When you run a build tool and everything works fine, you can usually disregard any output the tool produced. But when the build tool fails, it may emit output that contains clues about the line of code where the failure occurred. Using Vim’s compiler plugins and the :make command, you can run a build tool and capture the output so that you can refer to it later.
Better still, Vim can parse any references to filenames and line numbers, allowing you to quickly jump to the line of code where an error originated. However, the fact that Vim’s built-in :make command runs synchronously can be irritating, especially for long-running builds. The Dispatch plugin solves this by providing various adapters ...
Get Modern Vim now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.