No ideas then, sorry. Maybe try it from ports/packages instead in case there's anything funny with your build? (I know that's not a standard ports one because we didn't have 8.0.1476).
On 2018/03/09 21:32, Nan Xiao wrote: > Hi Stuart, > > hexdump doesn't show anything exceptionally: > # hexdump -C a > 00000000 31 0a |1.| > 00000002 > > I don't have .vimrc, just a .viminfo and .vim directory: > > # ls -alth .vim* > -rw------- 1 root wheel 725B Mar 9 21:27 .viminfo > > .vim: > total 24 > drwx------ 7 root wheel 1.0K Mar 9 21:28 .. > drwxr-xr-x 2 root wheel 512B Aug 29 2017 . > -rw-r--r-- 1 root wheel 93B Aug 29 2017 .netrwhist > > Thanks! > Best Regards > Nan Xiao > > > On Fri, Mar 9, 2018 at 6:43 PM, Stuart Henderson <s...@spacehopper.org> wrote: > > On 2018-03-09, Nan Xiao <xiaonan830...@gmail.com> wrote: > >> Hi all, > >> > >> Greetings from me! > >> > >> I meet a weird issue: there is a file which contains only "1": > >> > >> # cat a > >> 1 > >> > >> While use vim to open it, it displays "0". I find the number behind > >> cursor will decrease 1. > >> > >> Does anyone bump into this issue? Thanks very much in advance! > >> > >> P.S., my OpenBSD is 6.2 release, and vim is 8.0.1476. > >> > >> Best Regards > >> Nan Xiao > >> > >> > > > > I don't see it here. Are you sure there's nothing strange in the file? > > > > hexdump -C a > > > > Do you have a .vimrc? If so, does it still happen if you move it out the > > way? > > > >