---
title: "Why not just embed Neovim?"
description: "Zed implements its own Vim mode on top of its native editor foundations instead of embedding Neovim, because embedding would mean discarding or duplicating Zed's rope, SumTree, CRDT-based collaboration, render pipeline and async runtime."
url: "https://swe.quest/articles/why-not-just-embed-neovim-5d977d2d0822cddb"
canonical: "https://zed.dev/blog/zed-decoded-vim"
source: "Zed"
published: "2024-06-13"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["developer-tools","testing","rust"]
---

# Why not just embed Neovim?

A post on [Zed](https://swe.quest/sources/zed.md), published 2024-06-13, 9 min read, Case study. Original: [https://zed.dev/blog/zed-decoded-vim](https://zed.dev/blog/zed-decoded-vim)

## Summary

Zed implements its own Vim mode on top of its native editor foundations instead of embedding Neovim, because embedding would mean discarding or duplicating Zed's rope, SumTree, CRDT-based collaboration, render pipeline and async runtime. Differences such as Vim addressing characters while Zed addresses the gaps between them make exact Vim emulation tricky, especially around newlines, counts, and what the \`.\` command repeats. Building on Zed's core lets Vim motions combine with multi-cursors, Treesitter node selection, diagnostics and the command palette. Neovim still has a role: tests in the \`vim\` crate run a headless Neovim to generate golden files that Zed's Vim mode is checked against.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Rust](https://swe.quest/tags/rust.md) (Languages)

## Prerequisites

- Vim motions and operators

## Keywords

Zed, Neovim, Vim, CRDT, Treesitter, vim-surround

## Related posts

- [Copilot x Zed](https://swe.quest/articles/copilot-x-zed-48f53be12c312262.md): Zed · 2023-04-20 · Medium · 2 min read · Developer tools, AI for coding
  GitHub Copilot is now available in Zed v0.82, integrated by reusing the undocumented, minified Copilot LSP server shipped in the Neovim plugin, which Zed's built-in LSP support could drive directly.
- [Zed Weekly: #21](https://swe.quest/articles/zed-weekly-21-6f0d0de0d9285330.md): Zed · 2023-09-29 · Easy · 7 min read · Developer tools, Frontend, Rust
  Weekly team update from the Zed editor team. It covers initial Prettier integration and better LSP server log display, a storybook CLI for rendering new GPUI UI components in isolation, and Vim mode's command palette shipping to preview.
- [Zed Weekly: #28](https://swe.quest/articles/zed-weekly-28-c8ae91adc8298b18.md): Zed · 2023-12-04 · Medium · 5 min read · Developer tools, Rust, Design systems
  Zed is rewriting its editor as Zed2 in three phases (runnable core editing, productivity features like collaboration, terminal and Vim mode, then flagship features like Assistant, Copilot and Chat), aiming for a preview by end of 2023 and open-sourcing shortly after Zed2 supersedes Zed1.
- [This Week at Zed Industries: #12](https://swe.quest/articles/this-week-at-zed-industries-12-12effbc7b871501a.md): Zed · 2023-07-21 · Medium · 7 min read · Rust, Real-time systems, Consistency models, Developer tools, Replication
  Zed publicly launched its preview channel and reports progress across the editor: Vim search commands, macOS ctrl-click remapped to right click in the platform layer, terminal Cmd+hover navigation, a semantic index that collapses nested tree-sitter symbols to cut embedding tokens, and a lock-contention bug where slow git status in huge repos serializes file scanning.
- [Zed Weekly: #25](https://swe.quest/articles/zed-weekly-25-cd3a5f41d4f0b187.md): Zed · 2023-11-03 · Medium · 6 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
