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

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind