Micro Cheat Sheet
This article holds my cheat notes for the Micro terminal based text editor.
Keybindings and Shortcuts
Source: https://github.com/zyedidia/micro/blob/master/runtime/help/defaultkeys.md
General
| Shortcut | Action |
|---|---|
| Ctrl + e | Open command bar |
| Shortcut | Action |
|---|---|
| Ctrl + f | Find |
| Ctrl + n | Find next occurence |
| Ctrl + p | Find previous occurence |
| Ctrl + l | Go to line |
Tabs and Splits
| Shortcut | Action |
|---|---|
| Ctrl + t | Open new tab |
| Alt + , | Previous tab |
| Alt + . | Next tab |
| Ctrl + q | Close tab |
| Ctrl + w | Switch between splits |
Multiple cursors
| Key | Description of function |
|---|---|
| Alt + n | Create new multiple cursor from selection (will select current word if no current selection) |
| Alt + Shift + Up | Spawn a new cursor on the line above the current one. Also see hint below. |
| Alt + Shift + Down | Spawn a new cursor on the line below the current one. Also see hint below. |
| Alt + p | Remove latest multiple cursor |
| Alt + c | Remove all multiple cursors (cancel) |
| Alt + x | Skip multiple cursor selection |
| Alt + m | Spawn a new cursor at the beginning of every line in the current selection |
| Ctrl + MouseLeft | Place a multiple cursor at any location |
Hint: In Windows 11 terminal the key combinations Alt + Shift + Up and Alt + Shift + Down in Micro do not work by default as these key bindings are already occupied in Windows 11 terminal settings. To have them working in micro properly you need to go to Windows 11 terminal settings and remove these key bindings.
Commands
Every shortcut starting with > symbolizes, that command bar was opened first with Ctrl + e which leads to the command bar showing up in the bottom line of the editor represented by > .
Run Terminal Commands
Ctrl + b and type terminal command for single commands.
> term for a full terminal window. Do a hsplit or vsplit first to have them both side by side
Handling Windows
| Shortcut | Action |
|---|---|
| > vsplit | Split |
Configuration
Soft Word Wrap
> set softwrap on
Cliboard
> set clipboard terminal - I don't know what this does nor what the default value is
