I use two monitors in my development workflow, one is a full-screen vim session for editing, and the other is a full-screen terminal on which I run make && ./test to display the results. Quite often, I find that I open a bunch of other windows in the background (browers, more shells, etc.). I do not like this for several reasons:
- I don't like to remember how many times I need to hit a tab before I get my make window.
- Ubuntu has no strong visual feedback for which the window is currently in focus. Maybe I could do something, but this is a separate problem.
- Honestly, I'm lazy, and
:w alt-tab up-arrow enter alt-tab - too many keystrokes.
I think a good solution might be the vim command, which runs make && ./test in another window, but I can't figure out how to do this. I could write a server / client script that waits for some notification from vim, then runs the command, but it really seems like there should be a simpler solution. Any thoughts?
source share