MeshWorld India LogoMeshWorld.
HowToMicroText EditorTerminalLinuxDeveloper Tools7 min read

Micro Editor: The Modern Terminal Editor for Everyone

Darsh Jariwala
By Darsh Jariwala
Micro Editor: The Modern Terminal Editor for Everyone

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?

FeatureNanoMicrovi/vim
Mouse supportPartial
Syntax highlightingBasicExcellentWith plugins
Familiar shortcutsPartial
Splits/tabs
Plugins
Pre-installedUsually

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

ActionShortcut
SaveCtrl+S
ExitCtrl+Q
Save & ExitCtrl+S then Ctrl+Q
Exit without savingCtrl+Q then confirm

Exit prompts:

  • If unsaved changes exist: Save changes? (y/n/esc)
  • Press y to save, n to discard, Esc to cancel
ActionShortcut
Arrow keysMove cursor
Home / EndBeginning / end of line
Page Up / DownScroll pages
Ctrl+HomeBeginning of file
Ctrl+EndEnd of file
Click mouseMove cursor to click

Editing

ActionShortcut
Ctrl+CCopy selection
Ctrl+XCut selection
Ctrl+VPaste
Ctrl+ZUndo
Ctrl+YRedo
Ctrl+ASelect all
TabIndent
Shift+TabUnindent

Search and Replace

ActionShortcut
Ctrl+FFind
Ctrl+NFind next
Ctrl+PFind previous
Ctrl+HReplace

Splits and Tabs

Split Windows

ActionShortcut
Ctrl+WVertical split (left/right)
Ctrl+E then hsplitHorizontal split (top/bottom)
Ctrl+E then vsplitVertical split
Click on paneSwitch to that pane
Ctrl+Q (in pane)Close current pane

Tabs (Multiple Files)

ActionShortcut
Ctrl+TNew tab
Ctrl+OOpen file in new tab
Alt+,Previous tab
Alt+.Next tab
Ctrl+QClose 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
PluginPurpose
filemanagerFile tree sidebar
fzfFuzzy file finder
linterLint code as you type
autocloseAuto-close brackets
commentBetter commenting
quoterAuto-quote strings
snippetsCode 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 exit
  • n — Exit without saving
  • Esc — 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

EditorSaveExitSave & ExitForce Exit
MicroCtrl+SCtrl+QCtrl+S, Ctrl+QCtrl+Qn
NanoCtrl+OCtrl+XCtrl+XYCtrl+XN
vi/vim:w:q:wq:q!
EmacsC-x C-sC-x C-cC-x C-s, C-x C-cM-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.

Share_This Twitter / X
Darsh Jariwala
Written By

Darsh Jariwala

Full-stack developer and Developer Experience (DX) advocate. Passionate about building efficient workflows, mastering IDEs, and sharing technical insights that help developers work smarter.

Enjoyed this article?

Support MeshWorld and help us create more technical content