[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: strange vim startup/loading error



 

> -----Original Message-----
> From: Brian Long
> 
> > $ vim -r
> > Swap files found:
> >    In current directory:
> >       -- none --
> >    In directory ~/tmp:
> >       -- none --
> >    In directory /var/tmp:
> >       -- none --
> >    In directory /tmp:
> >       -- none --
> 
> Have you checked permissions of the above directories?  I 
> wonder if the
> upgrade somehow screwed up /var/tmp permissions.  If you run 
> "strace vim
> myFile", does that help narrow down the problem?
> 

Ok, running the strace didn't point directly at it, but it helped
point at what I think the problem is.

There seems to be size limit, maybe number of lines.. characters
bytes, not sure in reference to the swap file creation?  If I generate 
a test file with on the RHEL 4 U3 box with vim 6.3.82 (RH 6.3.046-0.40E.7)

perl -e 'for (my $i=0; $i <= 3509; $i++) { print "This is just one line of text.\n" }' >
test.txt

and then vim test.txt

I get:

E295: Read error in swap file
E316: ml_get: cannot find line 1
Hit ENTER or type command to continue

Can anyone else reproduce this?

thanks,
marc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]