I'm trying to do the following:
- Start a new screen session
- Start vim on it.
- Feed commands to it.
- Check the output
as a means of testing vim. I can do this, but the catch is that I want it to be opaque to the user.
In other words, the user runs my test script, and without showing them the script creates a new screen, runs vim on it, and away we go with the testing.
Is this possible? Can I run vim in a detached screen and have it operate as expected?
(Note: I'm not attached to screen, tmux or some other multiplexor or really any method of piping controlled input to an invisible vim instantiation would be fine.)
I've done this manually (split my terminal and run the -X stuff
commands in one screen with vim in the other) but any time I try to write a script to do it it doesn't work. I'm having a lot of trouble figuring out why it doesn't work, because I can't exactly attach to the screen and watch...