Hacker News new | ask | show | jobs
by patrickdavey 3677 days ago
If you use tmux and vim, and if you run tests, then you must look at janko-m/vim-test and vim-dispatch. Runs any test seamlessly in the background.

Vim-dispatch also has the best intro video to anything ever ;)

https://vimeo.com/63116209

3 comments

Tim Pope is awesome. I was just staring and grinning at the end. :)
Video is awesome. What is the advantage over just having a separate tmux/screen session in which you launch your command though?
Well, the nice thing here is that with the integration between vim-test and vim-dispatch is that you don't have to do anything for having the tests run in a separate session. It just works. I mean really you _are_ just having it run in a separate session, just more smoothly.

If the tests pass then the tmux window the tests were run in will just disappear, if not, you get popped back to the quickfix window with the errors listed.

Give it a go and see how you like it! :)

Is vim dispatch still necessary now that there is native background processes?
Good question, I assume not, but the plugins work so.... I guess maybe the incredible and prolific Tim Pope well maybe update vim dispatch to work with the background processes.