I have assigned the macro
!clear && gcc % && ./a.out to the key 'r'.
So when I press '@r', I expect vim to:
- Clear the shell
- compile the current C file
- run the output
The problem is that it does all three but does not wait at the output screen where it shows "Press ENTER or type command to continue" and comes back to command mode.