Nội dung của v:scrollstart
có thể được sử dụng để tìm hiểu lý do tại sao điều này xảy ra.
Có một số tùy chọn có thể liên quan đến sự cố. Từ vim-faq:
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
For more information, read
hit-enter
avoid-hit-enter
'shortmess'
'cmdheight'
Edit:
Từ :h netrw-problems
:
P10. I'm being pestered with "[something] is a directory" and
"Press ENTER or type command to continue" prompts...
The "[something] is a directory" prompt is issued by Vim,
not by netrw, and there appears to be no way to work around
it. Coupled with the default cmdheight of 1, this message
causes the "Press ENTER..." prompt. So: read |hit-enter|;
I also suggest that you set your |'cmdheight'| to 2 (or more) in
your <.vimrc> file.
Bạn cũng nên kiểm tra xem bạn đang sử dụng phiên bản plugin mới nhất, là có một lỗi sửa chữa trên phiên bản 71 có liên quan đến sự cố của bạn:
v71: * bugfix -- made some "set nomodifiable"s into
:
:
* When ch=1, on the second and subsequent uses of
browsing Netrw would issue a blank line to clear
the echo'd messages. This caused an annoying
"Hit-Enter" prompt; now a blank line message
is echo'd only if &ch>1.
tái tạo trong Windows Terminal Vim, với ': e.'. Đặc biệt, thông qua 'vim -N -u NORC'. –