Mail Archives: djgpp/2010/04/27/18:15:19
Hi,
On Apr 26, 3:29=A0am, "Rod Pemberton" <do_not_h DOT DOT DOT AT havenone DOT cmm> wrote:
> "Rugxulo" <rugx DOT DOT DOT AT gmail DOT com> wrote in message
>
> > P.S. Rod, why not use VIM or VILE if your 16-bit version
> > runs out of RAM?
>
> I don't need to handle larger text files that frequently. =A0I find that
> simple text editors and specialized C programs usually work the best. =A0=
If I
> can't do it with simple text editor commands, then dedicated program.
>
> The VI clone for DOS that I'm using is called ELVIS. =A0(I believe you're
> aware of it. =A0I've mentioned it a few times here.) =A0It appears to be =
version
> 1.8. =A0Version 2.1 is available for DOS and Win32: http://web.cecs.pdx.e=
du/~kirkenda/
Well, 32-bit is usually a lot faster, but it's indeed larger code.
Elvis is great, but apparently the author never bothered using a 32-
bit DOS compiler (ahem, DJGPP), so the 2.1 version is horribly
useless, IMHO, because it runs out of memory *extremely* fast (esp.
when calling help)! So yes, I can (barely) see why you use the older
1.8 version (less bloated). Last I contacted the author a few years
ago, I asked him why, and it seemed to be more of a "have no time"
issue than anything. EDIT: Even VIM has dropped the 16-bit DOS .EXE in
latest 7.2. :-(
> I tried a bunch of DOS VI clones some years ago. =A0AIR, most seemed to
> support the VI commands correctly. =A0But, EX/ED support was what I wante=
d.
> AIR, except for ELVIS, many had problems with EX/ED commands.
Right, VILE doesn't support a lot of ex commands. Most people don't
need ex, they only want vi proper. But like I said, VIM supports Exim,
although I admit to not really having used that at all.
> AIR, I had some difficulty determining the proper AWK implementations for
> various VI commands. =A0There are quite a number of things simple EX/ED
> commands can do for which equivalent methods are not documented in the AW=
K
> cheatsheets. =A0The manuals weren't that helpful either. =A0With trial an=
d
> error, I came up with conversions that work or should work, at least with
> DOS and DJGPP's AWK port...
AWK is good for simple things like this (esp. since Google Groups
wraps posted code, ugh):
awk "length($0) > 70 { print NR }" myfile.c
Actually, I'm on a Rexx kick now, and at least two compile with DJGPP
(BRexx, Regina). :-)
- Raw text -