Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Dispatch plugin for Vim

📅 2015-Mar-28 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ build, dispatch, make, plugin, vim ⬩ 📚 Archive

20150328_vim_dispatch

Vim can be used to build your code by using the :make command. It runs the command appropriate for your compiler, parses the compile errors or warnings and provides them in the Quickfix window. The only problem with this is that the build process is synchronous: the build command takes over the terminal and until it is over you can neither view nor interact with Vim.

The Dispatch plugin by Tim Pope enables you to run the build command asynchronously. The plugin can be installed from source here. You have two choices: run the build command asynchronously in the foreground or in the background.

I highly recommend this plugin for anyone who is already using :make since with no change you can now build asynchronously.

Tried with: Vim 7.4 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧