Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Z

zed-101-setup

> 开发工具
Open source

Your ultimate guide to setting up Zed with Vim mode, tailored settings, and key bindings for a seamless coding experience

1.4K stars0 likes0 views
WebsiteGitHub

About

Your ultimate guide to setting up Zed with Vim mode, tailored settings, and key bindings for a seamless coding experience

Welcome to zed-101-setup

Your ultimate guide to setting up Zed Editor with Vim mode, tailored settings, and key bindings for a seamless coding experience

## Introduction

The Zed Editor 101 setup guide is designed to help you configure Zed Editor to enhance your development workflow. Whether you’re a Vim enthusiast or looking to boost your productivity with custom settings and key bindings, this guide provides all the necessary steps and resources. Follow along to get your Zed Editor configured with Nerd Font, Vim mode, local AI assistance, and more.

Quick Install

Deploy the entire Zed configuration with a single command:

bash
sh install.sh

This backs up your existing settings.json, keymap.json, and tasks.json to a timestamped directory, then copies the repo versions into ~/.config/zed. To restore, run the cp command printed at the end.

Nerd Font

Install Nerd Font using the following command:

bash
curl -fsSL https://raw.githubusercontent.com/getnf/getnf/main/install.sh | bash
getnf

zed-codemux

This setup uses zed-codemux as the default terminal shell, providing a multiplexer experience within Zed Editor. Install via:

bash
cargo install codemux

Then configure in settings.json:

jsonc
"terminal": {
  "shell": {
    "program": "/path/to/codemux"
  }
}

FFF GUI

This setup integrates fff-gpui, a native-GUI fuzzy file finder and grep tool for Zed. It provides quick file navigation and project-wide search with a minimal TUI interface.

Install via:

bash
brew tap th0jensen/fff-gpui
brew install fff-gpui

Keybindings:

Keybinding Action
space f f Open interactive file picker
space f g Open interactive grep search

Vim mode

For detailed Vim mode setup instructions, refer to the Zed Vim Mode Documentation.

Settings

Update your settings.json file with the following configuration:

…

LSP Testing Examples

LSP configuration recipes for rust-analyzer, gopls, vtsls, and biome are in example/lsp-settings.jsonc. Copy the relevant block into the "lsp" section of your settings.json to enable it.

# LSP Server Language Key Settings Demonstrated
1 rust-analyzer Rust checkOnSave, clippy checks, proc macros, inlay hints (binding, chaining, lifetime, type, parameter, reborrow)
2 gopls Go gofumpt, staticcheck, semantic tokens, analyses (nilness, fieldalignment), inlay hints
3 vtsls TypeScript/JavaScript Auto imports, inlay hints (parameter names, types, return types), organize imports, format config
4 biome JS/TS/JSON/CSS Formatter settings (indent, quotes, semicolons), linter, organize imports

Each example showcases different LSP capabilities — diagnostics, formatting, code actions, inlay hints, and refactoring — useful for testing LSP integrations in Zed.

Example code files for each LSP server are available in the example/ directory to verify the features listed above.

Keymaps

Update your keymap.json file with the following key bindings:

…

Tasks

Update your tasks.json file with the following task definitions:

…

Task Markers for FFF GUI

The tasks above enable the space f f and space f g keybindings defined in Keymaps. They spawn fff-gpui with the current directory as root.

  • fff-gpui: Files — Opens an interactive file picker using fff-gpui
  • fff-gpui: Grep — Opens an interactive grep search across project files

Setup local AI with Ollama

This config already includes Ollama support via the language_models.ollama setting pointing at http://localhost:11434. To use local AI:

  1. Install Ollama — https://ollama.com
  2. Pull a model — e.g., ollama pull llama3.2
  3. Start the server — ollama serve (or launch the app)

Zed automatically discovers pulled Ollama models through the api_url setting. No additional config is needed — the models appear in the agent model picker alongside cloud providers.

Refer to Zed's Ollama docs for more details.

Recommend extensions

  • biomejs/biome-zed: Biome extension for Zed
  • oxc-project/zed-oxc: Oxc extension for Zed
  • zed-industries/zed: Ruff

Resources

  • Text Manipulation Kung Fu for the Aspiring Black Belt
  • Vim - Zed
  • JavaScript - Zed
  • Bringing Interactive Computing to Zed: Introducing REPL Support
  • Leaving Neovim for Zed • Steve Simkins
  • Other Zed config
  • Maple Font - A Nerd Font with ligatures
  • Maple Theme for Zed

How to generate the settings

bash
sh cli.sh

Author

Huynh Duc Dung

  • Website: https://productsway.com/
  • Twitter: @jellydn
  • Github: @jellydn

Show your support

If this guide has been helpful, please give it a ⭐️.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Dung Duc Huynh (Kaka)


d1y


Naadiyaar


Jan Lubojacký

This project follows the all-contributors specification. Contributions of any kind welcome!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptguidehacktoberfestzed

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具