I like to use split windows - both horizontal and vertical - to edit multiple files.
I use tmux to manage those windows more easily
https://tmux.github.io/ "What is a terminal multiplexer? It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more. See the manual."
Example: Looking at files or running tests on the right, editing test and source files on the left: 