You want a terminal editor that’s easy to use like Nano but modern like VS Code. Micro is the answer: it has mouse support, syntax highlighting, splits, tabs, and uses familiar Ctrl+S, Ctrl+C, Ctrl+V shortcuts. This guide covers installation, basic usage, and why Micro might be your new favorite terminal editor.
What Makes Micro Different?
| Feature | Nano | Micro | vi/vim |
|---|---|---|---|
| Mouse support | ❌ | ✅ | Partial |
| Syntax highlighting | Basic | Excellent | With plugins |
| Familiar shortcuts | Partial | ✅ | ❌ |
| Splits/tabs | ❌ | ✅ | ✅ |
| Plugins | ❌ | ✅ | ✅ |
| Pre-installed | Usually | ❌ | ✅ |
Micro combines:
- Nano’s simplicity — Easy to learn, obvious controls
- VS Code’s conveniences — Modern features, mouse support
- vi’s power — Splits, plugins, customization
Installation
macOS
brew install micro
Ubuntu/Debian
curl https://getmic.ro | bash
sudo mv micro /usr/local/bin/
Fedora
sudo dnf install micro
Windows
# With scoop
scoop install micro
# With winget
winget install micro
Or Download Directly
curl https://getmic.ro | bash
Quick Start
Open a File
micro filename.txt
The Interface
┌────────────────────────────────────────────────────────┐
│ 1│ This is the file content you're editing │
│ 2│ Micro supports syntax highlighting │
│ 3│ automatically based on file extension │
│ 4│ │
│ 5│ It also shows line numbers on the left │
├────────────────────────────────────────────────────────┤
│ Ctrl+Q Quit Ctrl+O Open Ctrl+S Save Ctrl+G Help │
│ Ctrl+F Find Ctrl+N New Ctrl+E CommandBar │
└────────────────────────────────────────────────────────┘
What you see:
- Line numbers on the left
- Syntax highlighting (colors for code)
- Status bar at the bottom with shortcuts
- No modes — just type!
Essential Commands
Save and Exit
| Action | Shortcut |
|---|---|
| Save | Ctrl+S |
| Exit | Ctrl+Q |
| Save & Exit | Ctrl+S then Ctrl+Q |
| Exit without saving | Ctrl+Q then confirm |
Exit prompts:
- If unsaved changes exist:
Save changes? (y/n/esc) - Press
yto save,nto discard,Escto cancel
Navigation
| Action | Shortcut |
|---|---|
| Arrow keys | Move cursor |
| Home / End | Beginning / end of line |
| Page Up / Down | Scroll pages |
| Ctrl+Home | Beginning of file |
| Ctrl+End | End of file |
| Click mouse | Move cursor to click |
Editing
| Action | Shortcut |
|---|---|
| Ctrl+C | Copy selection |
| Ctrl+X | Cut selection |
| Ctrl+V | Paste |
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+A | Select all |
| Tab | Indent |
| Shift+Tab | Unindent |
Search and Replace
| Action | Shortcut |
|---|---|
| Ctrl+F | Find |
| Ctrl+N | Find next |
| Ctrl+P | Find previous |
| Ctrl+H | Replace |
Splits and Tabs
Split Windows
| Action | Shortcut |
|---|---|
| Ctrl+W | Vertical split (left/right) |
Ctrl+E then hsplit | Horizontal split (top/bottom) |
Ctrl+E then vsplit | Vertical split |
| Click on pane | Switch to that pane |
| Ctrl+Q (in pane) | Close current pane |
Tabs (Multiple Files)
| Action | Shortcut |
|---|---|
| Ctrl+T | New tab |
| Ctrl+O | Open file in new tab |
| Alt+, | Previous tab |
| Alt+. | Next tab |
| Ctrl+Q | Close current tab |
Command Bar
Press Ctrl+E to open the command bar at the bottom.
Common Commands
> save # Save current file
> open filename # Open file
> quit # Exit micro
> vsplit # Vertical split
> hsplit # Horizontal split
> tab # New tab
> set softwrap on # Enable soft wrapping
> set autotab on # Auto-indent with tabs
Configuration
Settings File
Create/edit ~/.config/micro/settings.json:
{
"autoclose": true,
"autoindent": true,
"autotab": true,
"colorcolumn": 80,
"cursorline": true,
"eofnewline": true,
"hlsearch": true,
"ignorecase": true,
"incsearch": true,
"indentchar": "┆",
"keepautoindent": true,
"ruler": true,
"scrollbar": true,
"scrollmargin": 3,
"scrollspeed": 2,
"softwrap": true,
"splitbottom": true,
"splitright": true,
"statusformatl": "$(filename) $(modified)($(line):$(col)) $(status.paste)| ft:$(opt:filetype) | $(opt:fileformat)",
"tabmovement": true,
"tabsize": 4,
"tabstospaces": true,
"useprimary": true
}
Keybindings
Create/edit ~/.config/micro/bindings.json:
{
"Ctrl-y": "Undo",
"Ctrl-shift-z": "Redo",
"Ctrl-d": "DuplicateLine",
"Ctrl-shift-up": "MoveLinesUp",
"Ctrl-shift-down": "MoveLinesDown",
"Ctrl-/": "ToggleComment",
"Alt-Left": "PreviousTab",
"Alt-Right": "NextTab"
}
Plugins
Install Plugins
Ctrl+E
> plugin install PLUGINNAME
Popular Plugins
| Plugin | Purpose |
|---|---|
filemanager | File tree sidebar |
fzf | Fuzzy file finder |
linter | Lint code as you type |
autoclose | Auto-close brackets |
comment | Better commenting |
quoter | Auto-quote strings |
snippets | Code snippets |
Install Example
Ctrl+E
> plugin install filemanager
Then use:
Ctrl+E
> tree # Toggle file tree
Why Switch to Micro?
From Nano
Better:
- Mouse support
- Splits and tabs
- Syntax highlighting for 130+ languages
- Plugins
- Modern feel
Familiar:
- Still easy to use
- Similar learning curve
- Simple by default
From vi/vim
Easier:
- No modes to remember
- Familiar shortcuts
- Obvious interface
- Less configuration needed
Still powerful:
- Splits and tabs
- Extensible with plugins
- Customizable
From VS Code
For terminal work:
- Faster startup
- Works over SSH
- Minimal resource usage
- No GUI required
Common Stuck Scenarios
”I can’t exit”
Solution:
Ctrl+Q
If unsaved, Micro asks Save changes? (y/n/esc)
y— Save and exitn— Exit without savingEsc— Cancel, stay in editor
”I accidentally closed with unsaved work”
Micro auto-saves backups. Recovery:
micro -recover filename.txt
“My settings aren’t working”
Check file location:
# Find config directory
micro --help | grep config
# Usually:
~/.config/micro/settings.json
“I can’t install plugins”
Problem: Micro needs Git to download plugins.
Solution:
# Install git first
sudo apt install git # Ubuntu/Debian
brew install git # macOS
“Syntax highlighting isn’t working”
Check file extension: Micro detects syntax from filename. If your file has no extension:
Ctrl+E
> set filetype python # Manually set syntax
Comparison: Exit Commands
| Editor | Save | Exit | Save & Exit | Force Exit |
|---|---|---|---|---|
| Micro | Ctrl+S | Ctrl+Q | Ctrl+S, Ctrl+Q | Ctrl+Q → n |
| Nano | Ctrl+O | Ctrl+X | Ctrl+X → Y | Ctrl+X → N |
| vi/vim | :w | :q | :wq | :q! |
| Emacs | C-x C-s | C-x C-c | C-x C-s, C-x C-c | M-x kill-emacs |
Micro uses the most familiar shortcuts from desktop applications.
Summary: Why Micro?
Choose Micro if you:
- Want a modern terminal editor
- Like mouse support and familiar shortcuts
- Need more power than Nano
- Want easier learning than vi/vim
- Work in terminals regularly
Skip Micro if you:
- Need an editor on systems you can’t install software
- Prefer modal editing (vi/vim style)
- Want Emacs’s ecosystem
Stuck in another editor? Check How to Exit vi and Vim, How to Exit Nano, or How to Exit Emacs.



