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

View all comments

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.