User Tools

Site Tools


micro

Table of Contents

Micro

Micro is a simple and intuitive text editor, which takes advantage of the capabilities of modern terminal emulators.

It aims to be a sort of successor to nano, enjoyable for full-time use, for those who prefer to work in the terminal, or who regularly edit files via remote systems.

Many Microsoft Windows users find Micro easy to use, as it has mouse support and Windows inspired commands: Ctrl+c and Ctrl+v for copy and paste, Ctrl+s for save, Ctrl+q for exit, etc.

Using Micro

Run Micro with

micro

…or open a file with:

micro file.txt

Type text into the buffer window and edit your document.

You may review the main shortcuts with Alt+g.

Scrolling

By default, Micro uses keyboard shortcuts that will be familiar to Windows users. Ctrl+arrow keys move word by word. Use Alt+Left arrow or Alt+Right arrow to move the cursor to the beginning or end of the line. You can move to next or previous paragraph with Alt+{ or Alt+} respectively.

Use Ctrl+Up arrow or Ctrl+Down arrow to scroll to the beginning or end of the document.

Selecting in Micro

While scrolling, you can combine all of these movements with the Shift key to activate text selection.

Micro Shortcuts

Key ShortcutCommand
Ctrl+g Help
Alt+g Display shortcuts on screen
Ctrl+a Select All
Ctrl+x Cut
Ctrl+c Copy
Ctrl+v Paste
Alt+Backspace Delete word
Ctrl+k Cut line (like Nano)
Ctrl+z Undo
Ctrl+y Redo
Ctrl+f Search
Ctrl+p Previous Search
Ctrl+n Next Search
Ctrl+w Switch windows
Ctrl+r Line Numbers
Ctrl+s Save Changes
Ctrl+b Open a shell
Ctrl+q Quit Micro

You can also use Function keys for common tasks:

F2 Save
F3 Search
F4 Quit
F7 Search
F10 Quit Micro

Micro Special Commands

Ctrl+e displays a > prompt. Enter a Micro special commands for certain advanced features.

Special CommandFeature
set softwrap on Activate wordwrap
set scrollbar on Add vertical scrollbar
vsplit Split window vertically
hsplit Split window horizontally
vsplit file.txt Load file.txt into vertical window
hsplit file.txt Load file.txt into horizontal window

Once you create several work windows in Micro, use Ctrl+w to switch between them.

You can configure the keys via the ~/.config/micro/bindings.json file, and the user settings in ~/.config/micro/Settings.json.

micro.txt · Last modified: 2025/02/07 12:45 by papa