I would like to set up something in a shell to give me an IDE-like experience using only the shell (no X). The closest I have come is using tmux, with vim in one pane and the command line in the other. That way from vim I can
.w !bash to run a line.
But this is not satisfactory to me because the environment does not persist between commands run seperately.
If I run:
FOO will not be echoed.
What I really want to do is go through a text file in one pane, and use a shortcut to send a line to the terminal in the other pane, as part of that terminal session. What is the right combination of tools to achieve this? I understand emacs can be configured to do something like this with its own terminal emulator, but I would like a solution that works with the stock tools (such as on an installer).
Edit: tmux select-copy-paste isn't so bad but still a little awkward.