Skills2026年4月14日·1 分钟阅读

micro — A Modern Terminal Text Editor That Just Works

micro is a terminal-based text editor with familiar shortcuts (Ctrl+S, Ctrl+C, Ctrl+V). No Vim/Emacs learning curve, mouse support, plugin system, syntax highlighting for 100+ languages — the modern alternative to nano.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
先审查命令
npx -y tokrepo@latest install a6161a84-380a-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

TL;DR
micro gives you desktop-style shortcuts (Ctrl+S, Ctrl+C, Ctrl+V) in the terminal with zero learning curve.
§01

What it is

micro is a terminal-based text editor written in Go that brings desktop-style keyboard shortcuts to the command line. Instead of memorizing Vim keybindings or Emacs chords, you use Ctrl+S to save, Ctrl+C/V for clipboard, and Ctrl+Q to quit. It ships as a single binary with no dependencies.

The editor targets developers who spend most of their time in IDEs or GUI editors but occasionally need to edit files on remote servers or inside containers. If you know how to use Notepad, you know how to use micro.

§02

How it saves time or tokens

micro eliminates the context-switch penalty of learning a modal editor. When you SSH into a server and need to edit a config file, you open it with micro config.yaml and start typing immediately. No mode confusion, no accidental deletions from hitting the wrong key in the wrong mode.

For AI-assisted workflows, micro's simplicity means less time explaining editor commands to colleagues or automation scripts. The JSON-based keybinding config is also easy for AI agents to generate or modify.

§03

How to use

  1. Install micro on your platform:
# macOS
brew install micro

# Linux
curl https://getmic.ro | bash

# Or via package manager
sudo apt install micro
  1. Open any file with micro filename.txt and start editing with familiar shortcuts.
  1. Customize keybindings by editing ~/.config/micro/bindings.json.
§04

Example

# Install and open a file
brew install micro
micro ~/.zshrc

# Inside micro:
# Ctrl+S  - save
# Ctrl+Q  - quit
# Ctrl+F  - find
# Ctrl+Z  - undo
# Ctrl+D  - duplicate line or select next match
# Ctrl+E  - open command bar
# Ctrl+G  - go to line

Split panes work too:

# In micro command bar (Ctrl+E):
> hsplit filename.go
> vsplit another.go
> tab filename.rs
§05

Related on TokRepo

§06

Common pitfalls

  • micro's clipboard integration depends on xclip or xsel on Linux. Install one of them or clipboard copy/paste will silently fail.
  • The plugin system uses Lua, not Go. Do not try to write plugins in Go -- use the Lua API documented in the micro wiki.
  • On some SSH connections, mouse support can conflict with terminal multiplexers like tmux. Disable mouse in micro with set mouse false if scrolling behaves oddly inside tmux.

常见问题

How does micro compare to nano?+

micro supports multi-cursor editing, split panes, a plugin system, regex find-and-replace, and syntax highlighting for over 100 languages. nano covers basic editing but lacks these features. micro also uses familiar desktop shortcuts rather than nano's Ctrl+O to save convention.

Can micro replace Vim or Emacs?+

For quick file edits, yes. For power users who rely on Vim motions or Emacs Lisp extensibility daily, micro is not a substitute. micro targets the use case of editing files on servers or in containers where you want zero learning curve.

Does micro support LSP or autocomplete?+

micro has community plugins for basic autocomplete and LSP integration. Install them via the built-in plugin manager with 'plugin install'. The LSP support is functional but less mature than what VS Code or Neovim offer.

Is micro available on Windows?+

Yes. micro runs on Windows, macOS, and Linux. On Windows you can install it via Scoop or Chocolatey, or download the binary directly from the GitHub releases page.

How do I install plugins in micro?+

Open the command bar with Ctrl+E and type 'plugin install plugin-name'. Available plugins are listed in the official micro plugin channel on GitHub. Popular ones include filemanager (tree view), fzf (fuzzy finder), and lsp.

引用来源 (3)

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产