Linux 3 min read

Micro: The Modern Nano Alternative You Need to Try

Suresh Suresh
Micro: The Modern Nano Alternative You Need to Try

If you love the simplicity of Nano but wish it had modern features like multiple cursors, true mouse support, and standard keyboard shortcuts, then Micro is exactly what you have been searching for.

Micro is a terminal-based text editor that aims to be intuitive and highly capable right out of the box. It is the perfect bridge for developers who want a quick, easy-to-use editor without having to learn the steep concepts of Vim or Emacs.

Why Choose Micro Over Nano?

  1. Standard Keybindings: Micro respects the keyboard shortcuts you already know from modern GUI editors (like Ctrl+S to save, Ctrl+C to copy, and Ctrl+Z to undo).
  2. First-Class Mouse Support: You can click to move your cursor, click and drag to select text, and use your scroll wheel normally.
  3. Multiple Cursors: Micro allows you to edit multiple lines at the exact same time—a feature usually reserved for heavy IDEs like VS Code or Sublime Text.
  4. Plugin Ecosystem: Written in Go, Micro supports plugins written in Lua to seamlessly extend its functionality.

Installation

Micro is incredibly easy to install, often consisting of just a single binary file.

Debian/Ubuntu:

sudo apt install micro

Using the official install script (Any Linux):

curl -sL https://getmic.ro | bash
sudo mv micro /usr/local/bin/

Launch it by simply typing micro filename.txt.

Keybindings You Already Know

If you have ever used Notepad, Word, or VS Code, you already know how to use Micro.

  • Ctrl + S: Save the file.
  • Ctrl + Q: Quit the editor.
  • Ctrl + C / Ctrl + X / Ctrl + V: Copy, Cut, and Paste.
  • Ctrl + Z / Ctrl + Y: Undo and Redo.
  • Ctrl + F: Find (Search).

You don’t need a cheat sheet to survive in Micro. It behaves exactly as you intuitively expect a modern text editor to behave.

The Killer Feature: Multiple Cursors

Editing 10 similar lines of code one by one is tedious. With Micro, you can place multiple cursors and edit them all simultaneously.

  • Alt + Down/Up: Add an additional cursor directly below or above your current one.
  • Ctrl + Click: Use your mouse to manually place an additional cursor anywhere on the screen.
  • Alt + N: Highlight a word, then press Alt + N to automatically highlight and select the next occurrence of that exact word.
  • Esc: Clear all extra cursors and return to standard single-cursor mode.

Customizing Micro

Micro uses a simple JSON configuration file located at ~/.config/micro/settings.json.

However, you don’t even need to open that file to change settings. You can press Ctrl + E to open the command prompt at the bottom of the screen and type commands directly:

# Set tab width to 4 spaces
> set tabsize 4

# Change the color theme to Dracula
> set colorscheme dracula

# Show a visual cursor line
> set cursorline true

Conclusion

Micro proves that terminal text editors don’t have to be intimidating, archaic, or difficult to learn. It brings the comforts of the 21st century directly into your SSH sessions.

If you are a beginner looking to move past Nano, or a seasoned developer who just wants a fast, mouse-friendly editor for quick config tweaks, give Micro a try today!

Suresh

Written by Suresh

A passionate technology enthusiast, blogger, and self-taught developer. I write about Linux, Open Source, Cloud Computing, and emerging technologies to help students and beginners learn tech for free.

Discussion

Loading comments...