How do I avoid the “hit enter to continue” prompt?
Vim will prompt you with the “hit enter to continue” prompt, if there are some messages on the screen for you to read and the screen is about to be redrawn. You can add the ‘T’ flag to the ‘shortmess’ option to truncate all messages. This will help in avoiding the hit-enter prompt:
You can also increase the command height by setting the ‘cmdheight’ option: