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.
Installation avec revue préalable
Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.
npx -y tokrepo@latest install a6161a84-380a-11f1-9bc6-00163e2b0d79 --target codexDry-run d'abord, confirmez les écritures, puis lancez cette commande.
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.
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.
How to use
- Install micro on your platform:
# macOS
brew install micro
# Linux
curl https://getmic.ro | bash
# Or via package manager
sudo apt install micro
- Open any file with
micro filename.txtand start editing with familiar shortcuts.
- Customize keybindings by editing
~/.config/micro/bindings.json.
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
Related on TokRepo
- CLI and Automation Tools -- Browse other terminal productivity tools curated on TokRepo
- Self-Hosted Tools -- Explore self-hosted developer tools that run entirely on your machine
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 falseif scrolling behaves oddly inside tmux.
Questions fréquentes
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.
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.
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.
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.
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.
Sources citées (3)
- micro GitHub Repository— micro is a terminal-based text editor written in Go with plugin support
- micro README— Syntax highlighting for 130+ languages and a Lua plugin system
- micro Documentation— micro keybindings are configured via JSON files
En lien sur TokRepo
Fil de discussion
Actifs similaires
Helix — A Post-Modern Modal Text Editor
Helix is a post-modern modal text editor inspired by Kakoune. Written in Rust with batteries-included defaults: Tree-sitter, LSP, multi-cursor, selection-first editing, and beautiful themes. Zero-config replacement for Vim for most users.
Microsoft Edit — Rust-Based Terminal Text Editor
A modern terminal text editor built in Rust by Microsoft, designed to be fast, lightweight, and easy to use from any command line.
Just — A Modern Command Runner and Makefile Alternative
Just is a command runner, like Make but for modern dev workflows. Write recipes in a Justfile, run them with `just recipe-name`. Simpler syntax than Make, no obscure behaviors, cross-platform, and works great for project tasks.
Notepad++ — Powerful Free Source Code Editor for Windows
Notepad++ is a free, open-source text and source code editor for Windows. Built on the Scintilla editing component, it supports syntax highlighting for over 80 languages, macro recording, and a rich plugin ecosystem.