0
My current setup to develop is a terminal to execute my code and multiple vim sessions in which I write my code.
Since I constantly work on smaller functions and compile/execute them frequently I often have to switch to the terminal just to run my code and see the current output.
Is there a way I to set a hotkey to execute the last command (compile and execute) in the terminal while staying with the cursor in the vim window?
I run Ubuntu and use the i3 windows manager.
May be I misread your question, but if you hit "Up" arrow on the keyboard when you are in terminal window, it will restore in command line previously executed command. You can hit it multiple times to see more commands from history – Alex – 2017-02-16T23:29:27.870
The problem is, that I have to switch to the terminal for this. I want to execute the terminal command while being in the vim window. I update my question – Natjo – 2017-02-16T23:35:49.863