Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configure Mitos

Open your user configuration with :config-open. The file is ~/.config/mitos/config.toml on Linux and macOS, or %AppData%\mitos\config.toml on Windows. On Unix, XDG_CONFIG_HOME can change the configuration directory.

Start with a few preferences:

theme = "onedark"

[editor]
line-number = "relative"

[editor.cursor.shape]
insert = "bar"

[keys.normal]
C-s = ":write"

Save the file and run :config-reload. Unknown editor settings and invalid values are reported when the configuration loads. To try another file, start with ms --config path/to/config.toml.

Settings changed with :set or :toggle apply to the running editor. Add them to config.toml to keep them for later sessions. For example, :toggle soft-wrap.enable temporarily toggles line wrapping.

Configuration files

FilePurpose
config.tomlEditor preferences, themes, keybindings, and custom commands
languages.tomlLanguage servers, formatters, and language-specific settings
.editorconfigShared conventions for matching file paths

A project’s .mitos/config.toml and .mitos/languages.toml override your user settings after you trust the workspace. Tables merge; ordinary arrays replace earlier values. See the configuration reference for precedence and EditorConfig for file conventions.

Older setting names are accepted without rewriting files. See Configuration migration to update them.

Cursor and line numbers

Use line-number = "relative" under [editor] to show distances from the current line. Insert mode and unfocused views still use absolute numbers. Choose block, bar, or underline for each mode’s cursor:

[editor.cursor.shape]
normal = "block"
insert = "bar"
select = "underline"

Only the primary cursor can change shape in a terminal.

To use the terminal’s block cursor and cursor colors, set block-rendering = "native" under [editor.cursor]. The default, "software", uses the editor theme. Secondary cursors remain software blocks.

Statusline

Each view has its own statusline. To use one statusline for the focused view, add global = true under [editor.statusline]. Use :toggle statusline.global to try it temporarily.

Choose which elements to show on each side:

[editor.statusline]
left = ["mode", "file-name", "file-modification-indicator"]
right = ["diagnostics", "position", "file-type"]
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"

The statusline reference lists all available elements and defaults.

Show the file path and enclosing symbols above the text:

[editor.breadcrumb]
enable = true
path = "full"

Use path = "file" to show only the filename before the symbols, or path = "none" to show symbols without a path.

Line wrapping

Soft wrapping displays a long line on several screen lines without changing its contents:

[editor.soft-wrap]
enable = true
wrap-indicator = "↪ "

Set wrap-at-text-width = true to wrap at editor.text-width when that is narrower than the view. Use :reflow to insert actual line breaks into selected prose instead. Languages can override soft wrapping and text width.

Visible whitespace

By default, whitespace is shown only at the end of document lines, including the final line without a newline. This is equivalent to:

[editor.whitespace]
render = "trailing"

Character glyphs keep their defaults unless configured separately. Whitespace at a soft wrap or viewport edge is only shown if it also belongs to the trailing whitespace of that document line.

To show all whitespace characters:

[editor.whitespace]
render = "all"

Alternatively, choose which kinds to show:

[editor.whitespace.render]
space = "none"
tab = "all"
newline = "all"

[editor.whitespace.characters]
tab = "→"
tabpad = "·"
tabend = "←" # Optional final tab cell; defaults to tabpad

Each kind also accepts "trailing" independently, for example:

[editor.whitespace.render]
space = "trailing"
tab = "all"
newline = "none"

Newline markers use "all" or "none"; "trailing" leaves them hidden. The ui.virtual.trailing_whitespace theme scope styles trailing whitespace and falls back to ui.virtual.whitespace. Virtual text and wrap indicators do not count as trailing whitespace.

Use :set whitespace.render all or :set whitespace.render trailing to change whitespace visibility temporarily.

Indentation guides

[editor.indent-guides]
render = true
character = "│"
skip-levels = 1

skip-levels hides the first indentation levels. See EditorConfig for shared indentation conventions.

More preferences

FeatureGuide
ClipboardRegisters and clipboard
Diagnostics and language toolsLanguage servers
Debugging terminalDebugging
Inline Git blameVersion control
File navigation and ignore rulesPickers
Picker layoutPicker layout
Popup and panel bordersPopup borders
Buffer pickerInitial selection
Delimiter pairingAuto-pairs
Saving and reloadingFiles, buffers, and splits
SearchSearch and replacement
GuttersGutter layout
Completion and TabCompletion and snippets
SpellingSpell checking
Project settingsWorkspace trust

See the configuration reference for all accepted settings, Key remapping for bindings, and Themes for colors.