It is found that a bug,vim in xshell is missing some of the contents of the file. Can anyone explain it?

Log in to centos7 with xshell when configuring the Nginx server recently. When configuring the / etc/nginx/nginx.conf file.
look at the picture first

clipboard.png

clipboard.png
vimvi
()

clipboard.png

clipboard.png

is also complete and no upper part is lost. If you know anything, please let me know. Thank you!

Mar.12,2021

guess if the top doesn't show up automatically when you open the file with vim. Click gg to see if you can get back to the top of the document.
by the way, you can add:

to the .vimrc file now.
set number

then

source ~/.vimrc

then open that file with vim, and the line number of the document will appear.

of course, you may be very familiar with vim itself, and the above content can be regarded as a trick.

Menu