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
| Shortcut | Action |
|---|---|
Ctrl+N | New buffer |
Ctrl+O | Open file… (prompt; accepts path:line[:col]) |
Ctrl+Shift+O | Open Recent… (chooser of recently opened files) |
Ctrl+S | Save (prompts for a path if the buffer is untitled) |
Ctrl+Shift+S | Save As… |
Ctrl+W | Close the active tab |
Ctrl+Shift+T | Reopen the most recently closed tab |
Ctrl+Q | Quit |
Ctrl+P | Open the command palette |
Ctrl+F | Open the find dialog |
Alt+H | In the find dialog: turn replace on or off |
Alt+I | In the find dialog: where to look — buffer, files, workspace |
Ctrl+R | Find & Replace |
Ctrl+Alt+R | Interactive query-replace (y/n/!/q) |
Ctrl+Shift+F | Search across the whole workspace |
F3 / Shift+F3 | Find next / previous |
Ctrl+G / Ctrl+Shift+G | Find next / previous (repeats the last search, even after the box closes) |
Alt+N / Alt+P | Find next / previous occurrence of the selection |
Ctrl+B | Toggle the file explorer (reveals the active file) |
Ctrl+E | Toggle focus between explorer and editor |
Alt+Left / Alt+Right | Position history: jump back / forward |
F12 | Go to definition of the symbol under the cursor |
F10 | Open / close the menu bar |
Alt+F/E/V/T/H | Open the File / Edit / View / Tools / Help menu |
F1 | Open 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)
| Shortcut | Action |
|---|---|
Ctrl+Z | Undo |
Ctrl+Shift+Z | Redo |
Ctrl+X | Cut selection |
Ctrl+C | Copy selection |
Ctrl+V | Paste |
Ctrl+A | Select all |
Ctrl+D | Forward delete: the character to the right of the cursor |
Ctrl+Shift+D | Duplicate the current line (or selection) |
Ctrl+K | Delete 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+B | Open the code outline panel (symbols) |
Arrows / End / PgUp / PgDn | Move the cursor |
Home | Smart Home: first non-blank, then column 0 |
Enter | New line, carrying the previous line’s indentation |
Typing / Backspace / Delete / Tab | Edit 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
| Gesture | Action |
|---|---|
| Click in the editor | Place the cursor there (and focus the editor) |
| Drag in the editor | Select text |
| Wheel over editor | Scroll the buffer |
| Click a tab | Switch to that buffer |
| Click a file in explorer | Preview it; click again to open permanently |
| Click a directory | Expand / collapse it |
| Wheel over explorer | Move the selection |
Click a message’s x | Dismiss that message |
| Click a menu name | Open that menu |
| Hover over an open menu | Move the highlight (rows) / switch menus (names) |
| Click a dock toggle icon | Toggle the explorer / messages drawer (top-right of the menu bar) |
File explorer (when focused — Ctrl+E)
| Shortcut | Action |
|---|---|
Up / Down | Move selection (scans a preview tab on the way) |
PgUp / PgDn | Move by a page |
Home / End | Jump to first / last entry |
Enter / Right | Open the file, or expand a directory |
Left | Collapse the directory, or jump to its parent |
Shift+Up/Down | Extend the multi-selection |
Ctrl+C/Ctrl+X | Copy / cut the selection |
Ctrl+V | Paste into the selected directory |
Delete | Delete the selection (asks to confirm) |
Esc | Cancel 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)
| Shortcut | Action |
|---|---|
Up / Down | Move selection |
x / Delete / Enter | Dismiss the selected message |
Esc | Return focus to the editor |
Command palette (Ctrl+P)
| Key | Action |
|---|---|
| (type) | Filter the current mode |
Up / Down | Move the selection |
Tab | Accept the top suggestion |
Enter | Accept the highlighted entry |
Esc | Close 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
| Key | Action |
|---|---|
| (type) | Edit the focused field (incremental in Find) |
Tab | Switch between the Find and Replace fields |
Enter | Find next (or Replace-All from the Replace field) |
Alt+Enter | Replace all |
F3 / Shift+F3 | Find next / previous |
Alt+C | Toggle case sensitivity |
Alt+W | Toggle whole-word matching |
Alt+R | Toggle regular-expression mode |
Esc | Close 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:
| Key | Action |
|---|---|
y / Space | Replace this match, go to the next |
n / Delete | Skip this match, go to the next |
! | Replace this match and all remaining |
q / Esc | Stop |
View menu overlays
The View menu opens small chooser overlays:
| Overlay | Keys |
|---|---|
| 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)
| Key | Action |
|---|---|
Left / Right | Previous / next month |
Esc / q | Close 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:
| Keys | Action |
|---|---|
Ctrl+X Ctrl+F | Open file… |
Ctrl+X Ctrl+S | Save |
Ctrl+X Ctrl+C | Quit |
Ctrl+X k | Close the active tab |
Ctrl+F / Ctrl+B | Forward / back one character |
Ctrl+N / Ctrl+P | Next / previous line |
Ctrl+A / Ctrl+E | Start / end of line |
Ctrl+V | Page down |
Ctrl+D | Delete the character ahead |
Ctrl+S | Find |
Ctrl+G | Cancel |
Vim
Modal. The status bar shows -- NORMAL --, -- INSERT --, or the : command
line. Press Esc to return to Normal mode.
| Mode | Keys | Action |
|---|---|---|
| Normal | h j k l | Left / down / up / right |
| Normal | 0 / $ | Start / end of line |
| Normal | x | Delete the character ahead |
| Normal | i / a | Insert before / after the cursor |
| Normal | o / O | Open a line below / above |
| Insert | Esc | Return to Normal mode |
| Command | :w | Save |
| Command | :q / :q! | Close tab / close tab, discarding edits; :qa / :qa! quit |
| Command | :wq / :x | Save and close |
| Command | :Ex | Focus the file explorer |
| Command | :s/a/b/ / :%s/a/b/gc | Literal substitute, line / buffer (g all, c confirm) |
| Command | :cn / :cp / :cope | Next / 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.