Micro Text Editor: Lightweight and Intuitive Terminal-Based Editor

The Micro Text Editor is a command-line text editor designed to replace Nano as the text editor for the masses. Here's how to use it!

A newcomer to the wonderful world of Linux will eventually need to place or alter some text in a file. In addition, numerous programs and system settings in Linux are tucked away in text files.

Of course, you can open these with your default text editors such as Gedit, Kate, Mousepad, or Pluma, but the terminal is often faster, especially when you need administrator permissions.

And so we come to Vi or Vim, but they are not the easiest for new Linux users. Fortunately, most Linux distributions include a text editor called Nano as a standard utility.

So for most uses, Nano is easy to use, and it doesnโ€™t require a significant learning curve. But you donโ€™t have to settle on Nano. There is a middle ground.

Something a little better than Nano, but not so challenging to learn as Vim, and this is the Micro Text Editor.

What’s Micro Text Editor

Micro Text Editor is a cross-platform terminal-based text editor, which is used for Linux and on all other platforms like Windows and macOS. It comes as one single static binary with no dependencies.

Micro Text Editor on Linux

It is written in GO programming language and designed to utilize the full capabilities of modern Linux terminals, aiming to be somewhat of a successor to the Nano editor.

Furthermore, Micro Text Editor is so easy to use that the learning curve is almost flat. Even if youโ€™ve never used a terminal-based text editor, youโ€™ll feel right at home using Micro. You donโ€™t need to learn anything new, and it has some exciting features.

Features

  • Easy to use, small, and straightforward.
  • Syntax highlighting for over 130 languages.
  • Color scheme support & true color support.
  • Excellent mouse support.
  • Common keybindings.
  • Highly customizable.
  • Built-in plugin manager to automatically install, remove, and update plugins.
  • Split-screen and tab features.
  • Simple auto-completion.

How to Use Micro Text Editor

To open the Micro Text Editor, use the micro command like:

micro

To open the file, mention the file name after the micro command:

micro filename

Youโ€™ll find a column for line numbers, in addition to two lines at the bottom for the UI.

Micro Text Editor

One thing youโ€™ll quickly notice is that Micro has proper mouse support. Unlike Nano, you can scroll the whole window properly with the scroll wheel.

In addition, you can click anywhere to move the cursor, click and drag to select the text, double click to select by word, and triple-click to select by line.

Micro Text Editor supports horizontal and vertical splits. To open a new split, you need to enter command mode by pressing Ctrl+E. This enables a > prompt for typing commands.

For example, type vsplit or hsplit and use Ctrl+W to move between splits.

Press Ctrl+E to start typing commands, and you can see which commands are available by pressing the tab or viewing the help topic help commands.

Micro Keybindings

Micro’s keybindings are what you would expect from a simple-to-use editor. The bindings may be rebound using the ~/.config/micro/bindings.json file. Each key is bound to an action.

Here is a list of some of Micro’s hotkeys, but probably you already know most of them.

  • Ctrl+O: Open File
  • Ctrl+S: Save File
  • Ctrl+Q: Quit
  • Ctrl+F: Find
  • Ctrl+N: Find Next
  • Ctrl+P: Find Previous
  • Ctrl+Z: Undo
  • Ctrl+Y: Redo
  • Ctrl+C: Copy
  • Ctrl+X: Cut
  • Ctrl+V: Paste
  • Ctrl+E: Command Mode

As you can see, Micro Text Editor tried using the same set of standard keys we use in popular text editors. To get the list of default keybindings, open the command bar (CTRL+E) and type help defaultkeys.

You can find out more information by visiting the project website.

How to Install Micro Text Editor on Linux

Installing the Micro text editor is simple.

Related: Sublime Text 4 Has Finally Arrived, Hereโ€™s How to Install it on Linux

On Ubuntu or any other Debian-based system, use the APT package manager for installation:

sudo apt install micro

Arch Linux users can install Micro Text Editor using Pacman:

pacman -S micro

If you are using Fedora or other RHEL-based OS such as AlmaLinux or Rocky Linux, use this command instead:

sudo dnf install micro

Please keep in mind that for interfacing with the local system clipboard, xclip or xsel packages also must be installed.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%