David Given <
david...@gmail.com> wrote:
> It's written in ANSI C, compiled into 8080 code with the ACK, and is
> about 10kB. I appear to have implemented a different subset of features
> than you have, so there's no search but I think there's more movement
> commands.
Good to see someone else working on something like this!
Let us compare notes. :)
QE supports delete word, delete line, and delete rest of line,
while VE supports the more general delete+motion command (in
addition to delete line and delete to EOL). For instance:
d'm delete to marked line
d`m delete to marker
db delete word backward
d0 delete to beginning of line
d/foo delete to following occurrence of "foo"
dH delete to first line on screen
dG delete to end of file
etc
Same works for changing and yanking. You can combine c,d,y with
any motion command.
Yanking (which you say you omitted completely) is done in-memory by
VE, if the yanked portion is up to one page in size, otherwise the
portion is written to disk.
Then VE can do search and replace, both globally and in a limited
region.
Motion commands: in addition to those supported by QE, VE has "move
to end of word" (e) and "go to char" (t and f). Or have I missed
any motion commands that VE does not have?
QE does have open above (O) and the :e and :n commands.
VE has :r (read and insert file) and :W (write region).
VE optimizes redraw quite a bit. For instance, if you move to the
next line at the end of the screen, it scrolls up and writes only
the last line. Same when moving up at the top of the screen. Hence
it feels quite responsive on a 2400-baud connection. How does QE
handle this?
I would say that VE offers quite a bit more functionality than QE.
Of course it is also twice the size of QE, so you can only edit
files of up to 27000 characters given the 48KB of TPA on my NC100.
Finally, I have been working on VE for much more than 9 hours!
So the comparison is a bit unfair, I think! :)