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

Configuration

Vix™ stores its settings with confy as a TOML file in the platform configuration directory, under the application name vix.

PlatformPath
Linux~/.config/vix/config.toml
macOS~/Library/Application Support/rs.vix/config.toml
Windows%APPDATA%\vix\config\config.toml

The exact location follows confy’s platform conventions. The file is created with default values on first save (e.g. on quit) and missing keys fall back to their defaults, so it is safe to delete or hand-edit.

Settings

KeyTypeDefaultMeaning
line_numbersbooltrueShow the line-number gutter.
show_whitespaceboolfalseShow visible glyphs for space (·), tab (→), and line ending ().
soft_wrapboolfalseWrap long lines across screen rows instead of scrolling horizontally.
prose_soft_wrapbooltrueSoft-wrap Markdown and Org files even when soft_wrap is off. A [languages.<id>] table or a modeline can still turn wrapping off for a file.
show_explorerbooltrueShow the file-explorer drawer on startup.
explorer_deletestring"trash"How the explorer’s Delete acts: "trash" (move to the OS trash/Recycle Bin, undoable there) or "hard" (remove outright, no undo). Any other value falls back to "trash".
review_viewstring"inline"The view a branch review opens in: "inline" or "side_by_side" (old text left, new text right; inline is used on a narrow terminal). v in the review switches it. Any other value behaves as "inline". See Branch review.
remote_agentstring"installed"Remote (SSH) workspaces: "installed" uses a vix of this exact version already on the remote machine as a faster file helper; "upload" also copies this vix there when it has none and the platform matches (SHA-256 checked on the remote side first); "off" uses shell commands only. Any other value behaves as "installed". See Remote editing.
git_gutter_basestring"head"What the editor’s change gutter compares against: "head" (the last commit), "index" (the staged version, so staged hunks stop being marked), "disk" (the saved file, so only unsaved edits show) or "branch:<name>". Any other value falls back to "head". Git → Change Gutter Base… sets it.
smart_commitstring"ask"What Git → Commit does when nothing is staged but files changed: "ask" (confirm, then stage everything with git add -A), "always" (stage everything without asking) or "never" (refuse). Any other value behaves as "ask".
oc_enginestring"auto"Which container engine the OC menu drives: "auto" (the first of docker, podman, nerdctl found on PATH) or one of those names. A named engine that is not installed falls back to the auto order.
oc_modestring"full""full", or "read-only" to let the OC menu list, inspect and show logs only. Any other value behaves as "read-only".
clipboard_providerstring"auto"How copy/paste reach the clipboard: "auto" (OSC 52 over SSH — SSH_TTY/SSH_CONNECTION set — or when the system clipboard fails; the system clipboard otherwise), "system" (system clipboard only) or "osc52" (always write the terminal’s OSC 52 escape, wrapped in tmux passthrough under TMUX; tmux needs allow-passthrough on). Under OSC 52, paste reads Vix’s own last copy. Any other value behaves as "auto".
inline_diagnosticsstring"cursor-line"Which lines show their language-server diagnostic as dimmed text at the end of the line: "off", "cursor-line" (the cursor’s line only) or "all". Any other value behaves as "cursor-line". The status bar shows the cursor’s diagnostic whatever this is set to.
inline_completionstring"off"Where dimmed inline ghost-text suggestions come from: "off", "lsp" (a language server that offers textDocument/inlineCompletion) or "ai" (a fill-in-the-middle prompt to the configured AI provider; the text around the cursor is sent to it). Tab accepts, Ctrl+Right accepts one word, Esc dismisses. Any other value behaves as "off".
show_messagesbooltrueShow the message drawer on startup.
show_status_barbooltrueShow the bottom status bar.
show_scrollbarbooltrueShow the editor’s right-side scroll bar.
show_scrollbar_markersbooltrueMark the scroll bar where git changes, diagnostics and search matches are.
show_bottom_dockboolfalseShow the bottom dock (log/output/data panel).
bottom_dock_heightint9Height (rows) of the bottom dock; drag its top edge to resize.
scrollbackint1000Maximum lines kept in the bottom dock; the oldest are dropped past this.
terminal_scrollbackint2000Lines of scrollback each integrated terminal keeps (Shift+PgUp scrolls back). At most 50000; 0 keeps none. Applies to terminals opened afterwards. See Integrated Terminal.
preview_tabsbooltrueOpen single-clicked / arrow-scanned files in an ephemeral preview tab.
show_welcome_dialogbooltrueShow the welcome dialog on launch. Vix sets it to false and saves once the dialog has been shown, so it appears on the first run only; set it back to true to see it again.
indent_stylestring"spaces"What Tab inserts: "spaces" or "tabs".
tab_widthint4Number of spaces per indent when indent_style = "spaces".
wrap_columnint80Column that Edit → Wrap hard-wraps (fills) text at.
trim_trailing_whitespacebooltrueOn save, strip trailing spaces/tabs from every line.
ensure_final_newlinebooltrueOn save, append a final newline if the file lacks one.
themestring"dark""dark", "light", the name of a custom theme, or "auto" to follow the terminal’s background.
theme_lightstring"light"The theme "auto" picks on a light terminal.
theme_darkstring"dark"The theme "auto" picks on a dark terminal (or when it can’t tell).
localestring"en"UI language code (en, es, fr, de, cy, …).
bidistring"auto"Reorder right-to-left text (Arabic) for display: auto, on or off.
mirror_layoutstring"auto"Mirror docks and the scroll bar for right-to-left languages: auto, on or off.
bidistring"auto"Reorder right-to-left text (Arabic) for display: auto, on or off.
keymapstring"apple"Keyboard navigation style: one of the fourteen in Keymaps (apple, vscode-macos, vscode-windows, emacs, vi, spacemacs, helix, intellij-macos, intellij-windows, eclipse, sublime, zed, fresh, ttt).
explorer_widthint24Width (columns) of the left dock; drag its right edge to resize.
messages_widthint26Width (columns) of the right dock; drag its left edge to resize.
recent_fileslist[]Recently opened files (absolute paths), most-recent first, capped at 15. Updated automatically; surfaced by File → Open Recent….
spellcheckboolfalseUnderline misspelled words in comments/strings (View → Editor → Toggle Spellcheck).
dictionary_pathstring""Extra directory to search for Hunspell dictionaries, on top of the autodetected standard locations (/usr/share/hunspell, /Library/Spelling, ~/.local/share/hunspell, hunspell -D, …). Empty = autodetect only. Both <dir>/<name>.{aff,dic} and <dir>/<name>/index.{aff,dic} layouts work. The spellcheck language follows the UI locale.
lsp_enabledbooltrueMaster switch for Language Server Protocol features (diagnostics, hover, go-to-definition, completion). When off, no servers launch. See crates/vix-lsp/spec/index.md.
lsp_auto_completebooltrueRequest LSP completion automatically while typing an identifier or a server trigger character (debounced). Off = only on Ctrl+Space.
format_on_typeboolfalseAsk the language server to format as you type: after a character it lists as an on-type trigger (such as ;, } or Enter) its edits are applied. Toggle with View → Format on Type.
lsp_serverslist[]Language servers, matched to files by extension. Each entry has language_id, extensions, and command. Empty by default: in a trusted workspace Vix starts well-known servers it finds on PATH (rust-analyzer, gopls, pyright or pylsp, typescript-language-server, clangd, …). An entry for an extension replaces the built-in for it.
contacts_dirstring""Directory of vCard (.vcf) files for Tools → Contacts…. Empty = the workspace root.
aistring"on"The AI optional switch. "off" hides the AI menu and every AI palette entry and refuses every AI request (the AI menu, the chat panel, the generated commit message, the DB assistant) without a rebuild; nothing is sent anywhere. Any value other than "on" counts as "off".
ai_commandstringclaude -p {prompt}Command template the AI menu runs. {prompt} is replaced with the action’s instruction, quoted by Vix (so don’t add quotes of your own; quotes written right around it are dropped); the input text is fed on stdin (or substituted for {file} if the template contains it). Point this at any assistant CLI — claude, codex, mistral, ollama run …. Ignored unless ai_provider is "cli" (the default).
ai_providerstring"cli"Which backend the AI menu, chat panel, and DB assistant use: "cli" (shells out to ai_command, no API key needed) or "anthropic"/"openai"/"ollama" (calls that provider’s HTTP API directly — see crates/vix-ai-core/spec/index.md). An unrecognized value falls back to "cli".
ai_endpointstring""HTTP provider endpoint override; empty uses the provider’s own default. Ignored when ai_provider is "cli".
ai_modelstring""HTTP provider model id override; empty uses the provider’s own default. Ignored when ai_provider is "cli".
ai_api_key_commandstring""Command whose stdout is the HTTP provider’s API key, tried before the OS keyring (same shape as the DB workbench’s password_command). Ignored when ai_provider is "cli".
ai_agentslist[]Agent Client Protocol coding agents (T635): each entry is a command line, e.g. "gemini --experimental-acp", run without a shell. AI → Start Agent starts it (or asks which, when several are listed), only in a trusted workspace. See crates/vix-acp/spec/index.md.
ai_diff_reviewbooltrueReview AI replace transforms (Annotate / Improve) as an accept/reject diff before applying, instead of overwriting immediately.
editorconfigbooltrueApply .editorconfig rules (indent style/size, trim trailing whitespace, final newline) per opened file, overriding the global settings.
modeline_linesint5Lines at the start and end of a file searched for Vim modelines (vim: set sw=2 et:); Emacs -*- … -*- lines and Local Variables: blocks are read too. A modeline wins over .editorconfig and these settings. 0 turns modelines off. See Modelines.
auto_pairbooltrueAuto-insert the matching closer when typing ( [ { " ' ` (wrap a selection; step over a closer; Backspace deletes an empty pair). Toggle via View → Editor → Auto-Pair Brackets.
inline_blameboolfalseShow the cursor line’s git blame (author, date · summary) dimmed at the end of the line. Toggle via Git → Toggle Inline Blame.
show_outline_dockboolfalseShow the code-outline sidebar (symbol list that follows the cursor). Toggle via View → Layout → Outline Sidebar.
outline_widthint28Width (columns) of the outline sidebar.
debug_widthint36Width (columns) of the debugger panel.
debug_adapterslist[]Debug adapters (DAP), matched to files by extension. Each entry has adapter_id, extensions, command, and optional launch and attach tables (attach is used by Run → Attach). See crates/vix-dap/spec/index.md.
test_commandstringcargo testCommand run by Tools → Run Tests; its output is parsed into the test panel.
test_widthint40Width (columns) of the test-results panel.
project_snippetsstring<config>/snippets/snippets.jsonProject snippet file, relative to the project root. See crates/vix-snippets/spec/index.md.
coverage_pathstring"" (unset)Default path pre-filled in Tools → Load Coverage File…’s prompt (an LCOV or Cobertura XML report). See crates/vix-coverage/spec/index.md.
relative_line_numbersboolfalseNumber lines relative to the cursor line (the cursor’s own line stays absolute).
show_breadcrumbsboolfalseShow the breadcrumb bar (file ▸ enclosing symbol) above the editor.
show_minimapboolfalseShow the code-overview minimap column at the right of the editor.
sticky_scrollbooltruePin the enclosing scope’s header line at the top while scrolling.
code_lensbooltrueDraw code lenses (Run, Debug, references, local Run test) as dimmed rows above their lines.
document_colorsbooltrueDraw a swatch for each color a language server reports.
rainbow_bracketsboolfalseColor matching brackets by nesting depth.
highlight_wordboolfalsePassively highlight every occurrence of the word under the cursor.
sticky_search_highlightbooltrueKeep search-match highlights after the Find box closes, until toggled off.
show_menu_tooltipsbooltrueShow hover tooltips on menu names and items.
format_on_saveboolfalseOn save, run the language server’s formatter when the file has one.
prettier_languageslist of strings[]Languages formatted with your own Prettier by Format Document and format-on-save: any of javascript, typescript, json, css, html, markdown, yaml, graphql, handlebars. See Format with Prettier.
auto_savestring"off"Save dirty file-backed buffers on their own: "off", "interval" (the active buffer every few seconds) or "focus_lost" (every buffer Save All could write, when the terminal window loses focus). An old true/false still loads as "interval"/"off".
persistent_undobooltruePersist each file’s undo tree across sessions, restored when the content still matches.
hot_exitbooltrueBack up unsaved buffers while idle and on quit, and offer them back (with a diff) when the file is next opened. A clean save deletes the backup. See Hot exit.
large_file_mbint50Ask before opening a file larger than this many megabytes (0: no limit of your own; a file over 500 MiB always asks, with a memory warning, and one over 1 GiB opens in the Large File Viewer).
read_only_pathslist of stringsCargo registry/git, ~/.rustup, /nix/store, Homebrew Cellar, node_modules, site-packagesPath globs that open read-only (~/ is home, ** spans directories). View → Editor → Read-Only unlocks a tab.
ephemeral_pathslist of strings["**/.git/**"]Path globs the session never records, such as COMMIT_EDITMSG.
restore_sessionbooltrueReopen the previous session (files, focus, cursors) when launched in a workspace with no file argument.
recent_files_maxint20How many entries to keep in recent_files.
time_zonestringUTCActive IANA time zone (e.g. America/New_York), chosen via Tools → Time Zone….
calendar_first_weekdaystring"monday"The day the calendar’s weeks start on: "monday" through "sunday" (or "mon".."sun"), independent of the UI language. Missing or unrecognized means Monday.
org_agenda_fileslist of strings[]The Org agenda’s explicit file list (workspace-relative). Empty means every .org file in the project.
org_capture_templateslist of tablesAnything, Task, Babel, Note, ContactOrg-capture templates for Org → Capture. See crates/vix-org-capture/spec/index.md.
org_priority_highestchar0Highest [#X] priority cookie character (Vix defaults to numeric 0..9, unlike Emacs’s A..C).
org_priority_lowestchar9Lowest priority cookie character.
org_priority_defaultchar0Priority given to a headline that had no cookie yet.
command_recentslist of strings[]Action ids recently run from the palette, surfaced at the top of the > list. Managed by Vix.
db_connectionslist of tables[]Saved database connections for the DB menu. Passwords are never stored; they are prompted per session. See crates/vix-db/spec/index.md.
[db_environments]table{}Each saved database connection’s environment, as name = "production" (local, development, testing, staging or production); a connection with no entry is local. Production connections confirm every write, even inside a transaction. Set on the connection form. See DB.
[db_mcp_shared]table{}Which saved database connections vix --mcp shares with MCP clients, read-only, as name = true; a connection with no entry is not shared. Set with the connection form’s Share with MCP row. See MCP server.
[im]tablesee belowThe IM menu: nick ("" = OS user name), notify ("mentions"; or "all", "off"), history ("session"; or "disk"), history_days (30), blocked ([]), [[im.accounts]] accounts (name, protocol = "irc" or "matrix"; IRC: server, port = 6697, tls = true, channels, sasl_user; Matrix: homeserver, user), and matrix_helper ("" = find vix-matrix beside vix or on PATH). Passwords come only from VIX_IM_PASSWORD_<NAME>. See IM.
jupyter_confirm_evaluatestring"untrusted"When running an Org src block in a Jupyter kernel asks first: "untrusted" asks before a block’s first run in a session unless the workspace is trusted (and always for a file outside the workspace), "always" asks before every run, "never" never asks. A block’s :eval query still asks and :eval never still refuses. Only in a build with the jupyter feature. See Jupyter Kernels.
[jupyter_kernels]table{}Which Jupyter kernelspec runs each language, as language = "kernelspec name" (for example python = "python3"). Used by Run → Jupyter → Run when no kernel for the language is running yet; empty picks the first installed kernelspec for the language. Only in a build with the jupyter feature. See Jupyter Kernels.

Example config.toml:

line_numbers = true
show_whitespace = false
show_explorer = true
explorer_delete = "trash"
review_view = "inline"
remote_agent = "installed"
git_gutter_base = "head"
smart_commit = "ask"
oc_engine = "auto"
oc_mode = "full"
clipboard_provider = "auto"
inline_diagnostics = "cursor-line"
inline_completion = "off"
show_messages = true
show_status_bar = true
show_scrollbar = true
show_scrollbar_markers = true
show_bottom_dock = false
bottom_dock_height = 9
preview_tabs = true
indent_style = "spaces"
tab_width = 4
wrap_column = 80
trim_trailing_whitespace = true
ensure_final_newline = true
theme = "dark"
locale = "en"
bidi = "auto"
keymap = "apple"
explorer_width = 24
messages_width = 32
lsp_enabled = true

# AI is optional: ai = "off" hides the AI menu and refuses every AI request.
ai = "on"

# The AI menu shells out to this command (text is piped on stdin). Swap in any
# assistant CLI, e.g. ai_command = "codex exec {prompt}". Vix quotes {prompt}
# itself, so leave it bare.
ai_command = "claude -p {prompt}"

# Or skip the CLI and call a provider's HTTP API directly (see
# crates/vix-ai-core/spec/index.md). The key comes from ai_api_key_command's
# stdout, or the OS keyring (service "vix-ai", account "anthropic") if that's
# empty -- never written here.
# ai_provider = "anthropic"
# ai_model = "claude-sonnet-5"
# ai_api_key_command = "pass show anthropic-api-key"

# Coding agents that speak the Agent Client Protocol (AI -> Start Agent runs the
# first, only in a trusted workspace; see crates/vix-acp/spec/index.md):
# ai_agents = ["gemini --experimental-acp"]

# One [[lsp_servers]] block per language server you have installed:
[[lsp_servers]]
language_id = "rust"
extensions = ["rs"]
command = ["rust-analyzer"]

trim_trailing_whitespace and ensure_final_newline normalize each file when it is saved (both default on). Note that trimming removes Markdown’s trailing two-space hard line breaks — set trim_trailing_whitespace = false if you rely on them.

Some keys are managed by Vix rather than hand-edited — recent_files, command_recents, db_connections, db_environments, db_mcp_shared, and the window/dock geometry are written back as you use the editor.

Most settings are also changed from inside the app and saved on quit: toggling line numbers / visible whitespace / explorer / messages, resizing a dock (drag its inner edge), and choosing a theme (View → Theme…), language (View → Locale…), or keymap (View → Keymap…).

Project and language settings

A workspace can carry its own settings in <root>/.vix/settings.toml, in the same format as config.toml, naming only the keys it changes. A [languages.<id>] table sets per-language values, in either file, for each of Vix’s language ids (rust, python, markdown, shell, text, …):

# <root>/.vix/settings.toml
tab_width = 2
format_on_save = true

[languages.python]
tab_width = 4

[languages.markdown]
soft_wrap = true
trim_trailing_whitespace = false

Later layers win: built-in defaults, then your config.toml, then the project file, then the buffer’s language table. Tables merge key by key, so a project’s [languages.python] adds to yours rather than replacing it; any other value replaces yours whole.

  • Trust first. A project file can change which commands Vix runs, so it applies only after you trust the workspace, at the same prompt that asks about .vix/scripts/ (“Trust Workspace?”). Until then, or after N, it is ignored. A remote (SSH) workspace’s project file is never read.
  • Per-language keys are the ones about a single buffer: indent_style, tab_width, wrap_column, trim_trailing_whitespace, ensure_final_newline, format_on_save, soft_wrap, show_whitespace, line_numbers, relative_line_numbers, auto_pair and rainbow_brackets. Other keys in a language table are reported and ignored. A file’s .editorconfig still wins for indentation and the on-save rules.
  • Unknown keys in the project file (a typo, or a key from a newer Vix) are reported in the message drawer and ignored; a value of the wrong type makes Vix ignore the whole project file and say why.
  • Your file stays yours. Changes made inside Vix are saved to config.toml, never to the project file, and the project’s values are never copied into config.toml.
  • Live reload. Saving .vix/settings.toml (or config.toml) in Vix applies it at once, as does Vix → Reload Settings.

Custom themes directory

Custom JSON themes live next to the config file, in a themes/ subdirectory (e.g. ~/.config/vix/themes/*.json on Linux). See themes.md for the file format. Set theme to a custom theme’s name to load it on startup.

Command-line flags

vix [FILES]...        Open one or more files; the last is focused.
                      A file may include a position: path:line[:col].
    --locale <CODE>   Use language CODE for this run (overrides `locale`,
                      not saved). e.g. --locale fr
    --help            Print usage.
    --version         Print the version.

See also

  • themes.md — custom theme JSON format.
  • i18n.md — languages and how the locale value is used.

Vix™ and Vix IDE™ are trademarks.