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:

    :set shortmess+=T

You can also increase the command height by setting the ‘cmdheight’ option:

    :set cmdheight=2

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind