I am using gVim as my text editor and I use it to write C++ and to execute my C++ file I have this map in my .vimrc:
map <F9> :<C-U>!x-terminal-emulator -e ./%:r<CR>
But when I run it the terminal closes immediately after I write my input and I can't see the output, is there a way I can make it work like this:
To show me the output then to let me know that I can press return and then exit from the terminal, this is the terminal when I execute code in Geany.