Welcome to Vimcraft

Vimcraft is a fast, AI-native editor built in Zig with a Neovim-compatible API powered by TypeScript. Build custom workflows, plugins, and AI agents with bare-metal performance. Zero configuration required to get started.

Why Vimcraft?

  • Neovim-Compatible - Use the familiar Neovim API. Your knowledge and muscle memory transfer directly.
  • AI-First Architecture - Built-in primitives for LLM integration and autonomous agents. No vendor lock-in.
  • TypeScript-Native - Configure and extend with TypeScript. Full IntelliSense, hot reload, and modern JavaScript features.
  • Bare-Metal Performance - Built in Zig with Hermes JSI for instant startup and zero-latency interactions.

Get Started in 5 Minutes

Quick Install

# for macOS and Linux, 
curl -fsSL https://vimcraft.com/install.sh | sh 

# Windows coming soon

Build from source

git clone git@github.com:vimcraft-labs/vimcraft.git
cd vimcraft
zig build
./zig-out/bin/vimcraft myfile.txt

Example: Basic Configuration

// Set editor options
vim.opt.number = true;
vim.opt.cursorLine = true;
vim.opt.tabStop = 2;

// Configure keymaps
vim.keymap.set('n', '<leader>ff', () => {
  vim.lsp.buf.format();
});

// Register an AI agent
vim.ai.registerAgent('refactor', async (selection) => {
  const context = await vim.lsp.getContext();
  return vim.ai.complete(`Refactor this code:\n${selection}`, { context });
});