3 ms·
The point seems to be size and minimalism (under 1k lines), not to compete with vim.
by ajacksified 10y ago
The point seems to be size and minimalism (under 1k lines), not to compete with vim.
- stcredzero 10y agoThis would make it a good candidate for embedding.
- gkya 10y agoIf you need vi for embedding, there are the ex-vi and the nvi projects, BTW. The latter with nex "are intended as bug-for-bug compatible replacements for the original Fourth Berkeley Software Distribution (4BSD) ex and vi programs." On my FreeBSD 10.3 it weighs in at 448K.
- stcredzero 10y agoI could see an advantage in a Lua embedded implementation. If Lua is going to be embedded anyway, there could be considerable memory savings. Also, many features/packages could be left out and loaded dynamically only as needed. I'm not sure how it works for Lua, but scripting languages on VMs often compile down to very compact bytecode. An entire Squeak Smalltalk image has been pruned down to 384k. I'd expect an entire vi clone in Lua to wind up only a small fraction of that.
- stevekemp 10y agoThat will be my end-goal; an editor I can ship with my (lua-based) mail-client.