2016-04-24 12:31:42 +00:00
|
|
|
# Micro help text
|
|
|
|
|
|
2020-02-08 23:31:06 +00:00
|
|
|
Micro is a terminal-based text editor that aims to be easy to use and
|
|
|
|
|
intuitive, while also taking advantage of the full capabilities of modern
|
|
|
|
|
terminals.
|
2016-04-24 12:38:38 +00:00
|
|
|
|
2020-06-18 03:11:50 +00:00
|
|
|
To open the command bar, press Ctrl-e. This enables a `>` prompt for typing
|
2020-02-08 23:31:06 +00:00
|
|
|
commands. From now on when the documentation says to run a command such as `>
|
2020-06-18 03:11:50 +00:00
|
|
|
help`, this means press Ctrl-e and type `help` (and press enter to execute the
|
2020-02-08 23:31:06 +00:00
|
|
|
command).
|
2016-08-31 01:29:41 +00:00
|
|
|
|
2019-09-02 18:40:50 +00:00
|
|
|
For a list of the default keybindings run `> help defaultkeys`.
|
2018-01-23 02:03:52 +00:00
|
|
|
For more information on keybindings see `> help keybindings`.
|
|
|
|
|
|
2017-10-11 13:16:53 +00:00
|
|
|
## Quick-start
|
|
|
|
|
|
2020-06-18 03:11:50 +00:00
|
|
|
Press Ctrl-q to quit, and Ctrl-s to save. Press Ctrl-e to start typing commands
|
2020-02-08 23:31:06 +00:00
|
|
|
and you can see which commands are available by pressing tab, or by viewing the
|
|
|
|
|
help topic `> help commands`.
|
2017-10-11 13:16:53 +00:00
|
|
|
|
2019-09-02 18:40:50 +00:00
|
|
|
Move the cursor around with the mouse or the arrow keys. Run
|
2017-10-11 13:16:53 +00:00
|
|
|
`> help defaultkeys` to get a quick, easy overview of the default hotkeys and
|
|
|
|
|
what they do. For more info on rebinding keys, see type `> help keybindings`.
|
2016-09-16 16:14:08 +00:00
|
|
|
|
2017-10-11 13:16:53 +00:00
|
|
|
If the colorscheme doesn't look good, you can change it with
|
2020-02-08 23:31:06 +00:00
|
|
|
`> set colorscheme ...`. You can press tab to see the available colorschemes,
|
|
|
|
|
or see more information about colorschemes and syntax highlighting with `> help
|
|
|
|
|
colors`.
|
2016-09-16 16:14:08 +00:00
|
|
|
|
2020-01-02 20:10:28 +00:00
|
|
|
Press Ctrl-w to move between splits, and type `> vsplit filename` or
|
2017-10-11 13:16:53 +00:00
|
|
|
`> hsplit filename` to open a new split.
|
2016-09-16 16:14:08 +00:00
|
|
|
|
2017-10-11 13:16:53 +00:00
|
|
|
## Accessing more help
|
2016-07-28 19:52:31 +00:00
|
|
|
|
2020-01-02 20:10:28 +00:00
|
|
|
Micro has a built-in help system which can be accessed with the `help` command.
|
2016-07-28 19:52:31 +00:00
|
|
|
|
2020-06-18 03:11:50 +00:00
|
|
|
To use it, press Ctrl-e to access command mode and type in `help` followed by a
|
2017-10-11 13:16:53 +00:00
|
|
|
topic. Typing `help` followed by nothing will open this page.
|
2016-07-28 19:52:31 +00:00
|
|
|
|
|
|
|
|
Here are the possible help topics that you can read:
|
|
|
|
|
|
2017-10-11 13:16:53 +00:00
|
|
|
* tutorial: A brief tutorial which gives an overview of all the other help
|
|
|
|
|
topics
|
|
|
|
|
* keybindings: Gives a full list of the default keybindings as well as how to
|
|
|
|
|
rebind them
|
2020-02-08 23:31:06 +00:00
|
|
|
* defaultkeys: Gives a more straight-forward list of the hotkey commands and
|
|
|
|
|
what they do.
|
2016-07-28 19:52:31 +00:00
|
|
|
* commands: Gives a list of all the commands and what they do
|
|
|
|
|
* options: Gives a list of all the options you can customize
|
2017-10-11 13:16:53 +00:00
|
|
|
* plugins: Explains how micro's plugin system works and how to create your own
|
|
|
|
|
plugins
|
2020-02-08 23:31:06 +00:00
|
|
|
* colors: Explains micro's colorscheme and syntax highlighting engine and how
|
|
|
|
|
to create your own colorschemes or add new languages to the engine
|
2017-10-11 13:16:53 +00:00
|
|
|
|
2019-09-02 18:40:50 +00:00
|
|
|
For example, to open the help page on plugins you would run `> help plugins`.
|
2017-10-11 13:16:53 +00:00
|
|
|
|
|
|
|
|
I recommend looking at the `tutorial` help file because it is short for each
|
|
|
|
|
section and gives concrete examples of how to use the various configuration
|
|
|
|
|
options in micro. However, it does not give the in-depth documentation that the
|
|
|
|
|
other topics provide.
|