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

Vix™ Keybindings

Every shortcut Vix currently implements. The bindings below are the Apple keymap (the default): familiar macOS/Windows modifier shortcuts. Two other keymaps change this dispatch — Emacs (Ctrl chords) and Vim (modal). Switch via View → Keymap…; the choice persists. See Keymaps.

Global

ShortcutAction
Ctrl+NNew buffer
Ctrl+OOpen file… (prompt; accepts path:line[:col])
Ctrl+Shift+OOpen Recent… (chooser of recently opened files)
Ctrl+SSave (prompts for a path if the buffer is untitled)
Ctrl+Shift+SSave As…
Ctrl+WClose the active tab
Ctrl+Shift+TReopen the most recently closed tab
Ctrl+QQuit
Ctrl+POpen the command palette
Ctrl+FOpen the find dialog
Alt+HIn the find dialog: turn replace on or off
Alt+IIn the find dialog: where to look — buffer, files, workspace
Ctrl+RFind & Replace
Ctrl+Alt+RInteractive query-replace (y/n/!/q)
Ctrl+Shift+FSearch across the whole workspace
F3 / Shift+F3Find next / previous
Ctrl+G / Ctrl+Shift+GFind next / previous (repeats the last search, even after the box closes)
Alt+N / Alt+PFind next / previous occurrence of the selection
Ctrl+BToggle the file explorer (reveals the active file)
Ctrl+EToggle focus between explorer and editor
Alt+Left / Alt+RightPosition history: jump back / forward
F12Go to definition of the symbol under the cursor
F10Open / close the menu bar
Alt+F/E/V/T/HOpen the File / Edit / View / Tools / Help menu
F1Open the searchable keyboard-shortcut browser (type to filter)

macOS: the Command key

On macOS, Command does whatever Control does — Cmd+S saves, Cmd+F finds, Cmd+Shift+Z redoes — for every shortcut on this page and in every keymap.

Whether Vix ever sees the key is up to the terminal: it must speak the kitty keyboard protocol (Vix asks for it at startup; Terminal.app does not support it) and it must forward that particular shortcut rather than keep it for its own menus. Most terminals keep Cmd+C, Cmd+V, and Cmd+N for themselves; you can usually free a specific one in the terminal’s keyboard settings.

Editor (when the editor is focused)

ShortcutAction
Ctrl+ZUndo
Ctrl+Shift+ZRedo
Ctrl+XCut selection
Ctrl+CCopy selection
Ctrl+VPaste
Ctrl+ASelect all
Ctrl+DForward delete: the character to the right of the cursor
Ctrl+Shift+DDuplicate the current line (or selection)
Ctrl+KDelete the current line
Alt+↑ / Alt+↓Move the current line up / down
Ctrl+]Jump to the matching bracket
Ctrl+/Toggle line comment (line or selection)
Ctrl+;Spelling suggestions for the word at the cursor
Ctrl+Shift+BOpen the code outline panel (symbols)
Arrows / End / PgUp / PgDnMove the cursor
HomeSmart Home: first non-blank, then column 0
EnterNew line, carrying the previous line’s indentation
Typing / Backspace / Delete / TabEdit text

Pasting with the terminal’s own shortcut (Cmd+V on macOS, Ctrl+Shift+V elsewhere) works too: Vix enables bracketed paste, so the text arrives in one piece — inserted verbatim, and undone in a single step.

The editor is the editor_core widget, which adds Tree-sitter syntax highlighting and the line operations above.

Mouse

GestureAction
Click in the editorPlace the cursor there (and focus the editor)
Drag in the editorSelect text
Wheel over editorScroll the buffer
Click a tabSwitch to that buffer
Click a file in explorerPreview it; click again to open permanently
Click a directoryExpand / collapse it
Wheel over explorerMove the selection
Click a message’s xDismiss that message
Click a menu nameOpen that menu
Hover over an open menuMove the highlight (rows) / switch menus (names)
Click a dock toggle iconToggle the explorer / messages drawer (top-right of the menu bar)

File explorer (when focused — Ctrl+E)

ShortcutAction
Up / DownMove selection (scans a preview tab on the way)
PgUp / PgDnMove by a page
Home / EndJump to first / last entry
Enter / RightOpen the file, or expand a directory
LeftCollapse the directory, or jump to its parent
Shift+Up/DownExtend the multi-selection
Ctrl+C/Ctrl+XCopy / cut the selection
Ctrl+VPaste into the selected directory
DeleteDelete the selection (asks to confirm)
EscCancel a pending cut / clear selection / unfocus

During a paste with a name conflict, choose (o) overwrite, (O) overwrite all, (s) skip, (S) skip all, or (c) cancel. Same-directory copies are auto-renamed (name copy, name copy 2, …); a same-directory cut is a no-op. Open buffers follow their files when moved and close when deleted.

Message drawer (when focused)

ShortcutAction
Up / DownMove selection
x / Delete / EnterDismiss the selected message
EscReturn focus to the editor

Command palette (Ctrl+P)

KeyAction
(type)Filter the current mode
Up / DownMove the selection
TabAccept the top suggestion
EnterAccept the highlighted entry
EscClose the palette

Prefixes switch modes: (none) file finder, > commands, # buffers, : go-to-line (the cursor previews the line live as you type; Esc reverts), @ go-to-symbol (declarations in the current file). In file-finder mode, append :line[:col] to jump on open.

Find & Replace

KeyAction
(type)Edit the focused field (incremental in Find)
TabSwitch between the Find and Replace fields
EnterFind next (or Replace-All from the Replace field)
Alt+EnterReplace all
F3 / Shift+F3Find next / previous
Alt+CToggle case sensitivity
Alt+WToggle whole-word matching
Alt+RToggle regular-expression mode
EscClose the toolbar

In regex mode the replacement supports capture groups ($1, ${name}) and the escapes \n, \t, \r, \\.

Interactive query-replace

Start with Ctrl+Alt+R (or the palette’s “Query Replace”), type the search and replacement, then press Enter to step through each match:

KeyAction
y / SpaceReplace this match, go to the next
n / DeleteSkip this match, go to the next
!Replace this match and all remaining
q / EscStop

View menu overlays

The View menu opens small chooser overlays:

OverlayKeys
Theme…↑/↓ preview live, Enter apply & save, Esc cancel
Locale… (language)↑/↓ preview live, Enter apply & save, Esc cancel
Keymap…↑/↓ highlight, Enter apply & save, Esc cancel

In every chooser a left click on a row highlights it (Themes/Locale also preview live).

View also has toggles for the line-number gutter, visible whitespace (glyphs for space ·, tab →, and line ending ), soft wrap (long lines wrap instead of scrolling), and the explorer / messages docks.

Calendar box (Tools → Calendar)

KeyAction
Left / RightPrevious / next month
Esc / qClose the calendar

The date/time area always shows the present; only the month grid navigates.

Keymaps

A keymap is the keyboard navigation style. Exactly one is active at a time; choose it in View → Keymap…. Menu mnemonics (Alt+F/E/V/T/H) and function keys (F1, F3, F10, F12) work in every keymap.

Apple (default)

Modifier shortcuts — the tables above.

Emacs

Ctrl chords, with a Ctrl+X prefix for file commands:

KeysAction
Ctrl+X Ctrl+FOpen file…
Ctrl+X Ctrl+SSave
Ctrl+X Ctrl+CQuit
Ctrl+X kClose the active tab
Ctrl+F / Ctrl+BForward / back one character
Ctrl+N / Ctrl+PNext / previous line
Ctrl+A / Ctrl+EStart / end of line
Ctrl+VPage down
Ctrl+DDelete the character ahead
Ctrl+SFind
Ctrl+GCancel

Vim

Modal. The status bar shows -- NORMAL --, -- INSERT --, or the : command line. Press Esc to return to Normal mode.

ModeKeysAction
Normalh j k lLeft / down / up / right
Normal0 / $Start / end of line
NormalxDelete the character ahead
Normali / aInsert before / after the cursor
Normalo / OOpen a line below / above
InsertEscReturn to Normal mode
Command:wSave
Command:q / :q!Close tab / close tab, discarding edits; :qa / :qa! quit
Command:wq / :xSave and close
Command:ExFocus the file explorer
Command:s/a/b/ / :%s/a/b/gcLiteral substitute, line / buffer (g all, c confirm)
Command:cn / :cp / :copeNext / previous task problem; list them

Overrides

Rebind a key yourself by hand-editing keybindings.toml in Vix’s config directory (next to config.toml):

[[binding]]
key_token = "C-S-k"
action_id = "edit.duplicate_line"

key_token uses the same grammar as a saved macro (C-/A-/S- prefixes plus the key, e.g. C-c, S-Tab, C-S-k); action_id is any action id — the same strings behind every menu item and shortcut on this page, or a script command (script:<stem>:<id>). An override takes priority over whatever the active keymap normally does with that key. Changes apply on restart, or immediately via Tools → Reload Keybindings.

Two overrides claiming the same key — from keybindings.toml, from a script, or one of each — are both rejected, reported in the message drawer so neither silently wins. An override that simply claims a key a built-in binding already used still wins outright, but is reported once so you’re not surprised later when that built-in stops firing. To edit overrides without hand-editing the file, use Vix → Keybindings….


Vix™ and Vix IDE™ are trademarks.