I recently got into touch-typing as I thought it might help me in my work and increase my productivity (I am currently a programmer, sometimes editing text files). Oftentimes I find myself switching from vim to terminal to run a command or open a different file.
I was wondering, how do you guys get around having to move your hands all over the keyboard when pressing arrow keys to get commands in terminal from history (what I usually do is edit some file with vim, compile, run, if it does not work I go back into vim editing, then save/close and arrow key up to get the compile and run commands from history). The only problem with this is I cannot keep my hands on the home row (obviously because I have to move to arrow keys).
How do touch-typists get around this? Is there some trick I might be missing?
P.S.: If there is any tool that might allow me to never leave vim, or other tools that you think might help me, please let me know.
P.S.S.: The shell I'm currently using is zsh.