A code editor written in Rust with built-in LSP support, optional Vim-style modal editing, and remote development.
sorrycc/Mayoi
A small, fast code editor written in Go with a native GPU-drawn UI, using no webview or Electron.
Open-source alternative to:VS Code
Sublime Text
- Stars
- 314
- Forks
- 48
- Open issues
- 16
- Last commit
- yesterday
What is it?
Mayoi is a code editor written in Go that draws its interface on the GPU through the MyGo framework, so it runs without a webview or Electron. The packaged app is about 18 MB. It covers everyday editing with tabs, Chroma syntax highlighting, split columns, a live file tree, and quick open, plus a full Vim mode with motions, operators, text objects, registers and macros.
The editor also includes project-wide search and replace, a Git view for staging, committing, diffing and browsing the commit graph, and an embedded terminal built on Ghostty's libghostty-vt emulator. Remote SSH lets you open a folder on another machine using the system's ssh, with the explorer, search, Git and terminals running on the host. Markdown, SVG and Mermaid previews sit beside the source.
Mayoi ships with light and dark themes plus several named themes, and settings are stored as JSON files, with a folder-level override in .mayoi/settings.json. It is available for macOS (Homebrew or DMG), Linux (GTK 3) and Windows.
Key features
- 01Vim mode with motions, operators, text objects, macros and ex commands
- 02Split editor columns with draggable tabs
- 03Git view for staging, committing, diffing and viewing commit graphs
- 04Embedded terminal powered by Ghostty's libghostty-vt
- 05Remote SSH folders that run explorer, search, Git and terminals on the host
- 06Live previews for Markdown, SVG and Mermaid
Use cases
- Editing code in a keyboard-driven workflow with Vim bindings
- Working on files on a remote machine over SSH without installing anything there
- Reviewing diffs and commit history without leaving the editor
- Using a lightweight native editor on macOS, Linux or Windows instead of an Electron-based one
Quick start
- 1
Add the Homebrew tap for Mayoi
brew tap --custom-remote sorrycc/mayoi https://github.com/sorrycc/Mayoi.git - 2
Trust the tap (only on recent Homebrew; skip on older versions)
brew trust sorrycc/mayoi - 3
Install the Mayoi cask
brew install --cask mayoi - 4
Open a folder from a shell with the installed command
mayoi .
Things to know
- The Homebrew install requires macOS 13 or later.
- Building from source requires Go 1.27 or later, and Linux also needs GTK 3.
In collections
Topics
FAQ
- What is Mayoi?
- A small, fast code editor written in Go with a native GPU-drawn UI, using no webview or Electron. Mayoi is a code editor written in Go that draws its interface on the GPU through the MyGo framework, so it runs without a webview or Electron. The packaged app is about 18 MB. It covers everyday editing with tabs, Chroma syntax highlighting, split columns, a live file tree, and quick open, plus a full Vim mode with motions, operators, text objects, registers and macros.
- Is Mayoi free to use? What license does it have?
- Mayoi is open source under the MIT license. Check the license terms before using it in commercial products.
- Is Mayoi still maintained?
- Actively maintained. The last commit to Mayoi was on Nov 6, 2026.
- What can I use Mayoi for?
- Editing code in a keyboard-driven workflow with Vim bindings Working on files on a remote machine over SSH without installing anything there Reviewing diffs and commit history without leaving the editor Using a lightweight native editor on macOS, Linux or Windows instead of an Electron-based one
- How do I install Mayoi?
- Add the Homebrew tap for Mayoi: brew tap --custom-remote sorrycc/mayoi https://github.com/sorrycc/Mayoi.git Trust the tap (only on recent Homebrew; skip on older versions): brew trust sorrycc/mayoi Install the Mayoi cask: brew install --cask mayoi Open a folder from a shell with the installed command: mayoi .
- Where can I get Mayoi?
- The source code and installation instructions are on GitHub: https://github.com/sorrycc/Mayoi
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A fast, native code editor written in Rust, forked from Zed, with built-in support for coding agents like Claude Code and Codex.
A lightweight cross-platform code editor built with Tauri (Rust and React), with Git support, AI agents, and Vim keybindings.
A high-performance, multiplayer code editor written in Rust, from the creators of Atom and Tree-sitter.
A fast, minimalist, extensible cross-platform text editor for programmers, with GUI and terminal versions, scriptable in Lua.
Neovim is a Vim-based text editor refactored for extensibility, with a Lua and RPC API that lets plugins and external UIs drive the editor.