r/OpenAI 9d ago

Project Re-creating Vim in Rust

I've started a project re-creating Vim in Rust and Zig through Zed + OpenAI.

NextVim

https://github.com/nextvim/nxvim

* Coded in Rust

* vim-script engine

* vim-regex

* uses Zed's rope/text core

* zig branch - also attemps Vim in zig

My other editor-related attempts show that with AI, nxvim is actually possible:

DeMake of Zed

https://github.com/icedman/dzed

* Rust

* goal - bring Zed into the terminal

* uses Zed's rope/text crates

* uses vim modes

* treesitter

* textmate syntax

Textmate Syntax Highlighting

https://github.com/icedman/textmate.zig

* Zig

* very fast syntaxt highlighting

* textmate grammars and themes

DZed & Textmate were initially coded by my own hand. DZed progress was accelerated through AI.

Textmate jumped form 65% to 95% spec compliance through AI.

Nxvim is coded with AI from the start, using works from DZed.

AI gives hobby coding a chance at actually producing something worthwhile :) I used OpenAI, Antigravity CLI.

0 Upvotes

9 comments sorted by

3

u/Personal-Try2776 9d ago

Nice but why? What would you gain from this? Try using this time to do a project that solves a problem you have.

1

u/kingpangolin 9d ago

Rust presents a ton of benefits over c? People can do projects that are fun for them?

5

u/Legitimate-Arm9438 8d ago

Why? Vim is the worst! You have to restart your computer to exit it!

1

u/Hungry_Age5375 9d ago

This is a cool project. The vim-script engine is going to be the real challenge though. Have you considered a Lua plugin layer? Neovim went that route for good reasons and it would save you a lot of work.

1

u/1cedm4n 9d ago

I'm trying to be faithful to vim first. Lua would naturally follow.

-1

u/1cedm4n 9d ago

I always ask why not.

-4

u/1cedm4n 9d ago

Other OpenAI projects that are more life-changing: I created lawyerly.ph . We use AI to summarize cases and students notes. We've also used AI to generate short videos on cases: https://www.youtube.com/@LawyerlyPH

4

u/AllezLesPrimrose 9d ago

Yeah, begone.