Keymaps
A keymap is a keyboard navigation style for moving through the editor, menus, file explorer, and more. Vix™ ships fourteen keymaps — Apple, VSCode macOS, VSCode Windows, Emacs, Vi, Spacemacs, IntelliJ macOS, IntelliJ Windows, Eclipse, Sublime, Zed, Fresh, ttt, and Helix — and exactly one is active at a time.
Status: Shipped. The choice persists in the keymap setting (default
apple).
Choosing a Keymap
Open View → Keymap… to pick the active keymap. The options are:
| Title | Tooltip | Example: open file chooser | Example: quit |
|---|---|---|---|
| Apple | Apple controls | Control-O | Control-Q |
| VSCode macOS | VS Code (macOS) bindings | Control-P (Quick Open) | Control-Q |
| VSCode Windows | VS Code (Windows) bindings | Control-P (Quick Open) | Control-Q |
| Emacs | Emacs chords | Control-X Control-F | Control-X Control-C |
| Vi | Vi modes | :Ex | :q! |
| Spacemacs | Vi modes + Space leader | SPC f f | SPC q q |
| IntelliJ macOS | IntelliJ (macOS) | Control-Shift-O (Go to File) | Control-Q |
| IntelliJ Windows | IntelliJ (Windows) | Control-Shift-N (Go to File) | Control-Q |
| Eclipse | Eclipse (Windows) | Control-Shift-R (Open Resource) | Control-Q |
| Sublime | Sublime bindings | Control-P (Goto Anything) | — |
| Zed | Zed bindings | Control-P (file finder) | Control-Q |
| Fresh | Fresh bindings | Control-P (Quick Open) | Control-Q |
| ttt | ttt bindings | Control-K P (Quick Open) | Control-Q |
| Helix | Helix modes | Space f | :q! |
Your selection is saved to the keymap setting, so it persists across sessions.
On macOS the Command key drives whatever Control drives, in every keymap —
Vix folds the modifier before dispatch. The terminal has to forward the
shortcut for that to happen; see ../keybindings/index.md.
IntelliJ
Two keymaps mirror IntelliJ’s defaults (macOS uses Control in place of
Cmd). Common bindings: Ctrl+F/Ctrl+R find/replace, Ctrl+Shift+F/R
in-project, Ctrl+Shift+A find action, Ctrl+B go to declaration, Ctrl+D
duplicate line, Ctrl+/ comment, Ctrl+Alt+L reformat, Ctrl+Alt+O go to
symbol. The platforms differ on a few: macOS uses Ctrl+O/Ctrl+Shift+O (go
to class/file), Ctrl+L (go to line), Ctrl+, (settings); Windows uses
Ctrl+N/Ctrl+Shift+N (go to class/file), Ctrl+G (go to line), Ctrl+Y
(delete line). Editing chords (Ctrl+Z/X/C/V/A) are the editor’s own.
Eclipse
Mirrors Eclipse’s Windows defaults: Ctrl+Shift+R open resource, Ctrl+Shift+T
open type, Ctrl+O quick outline, Ctrl+L go to line, Ctrl+K/Ctrl+Shift+K
find next/previous, Ctrl+H search, Ctrl+D delete line, Ctrl+/ comment,
Ctrl+Shift+F format, Ctrl+3 quick access (palette), Ctrl+Y redo, Alt+/
word completion, F3 open declaration.
Spacemacs
The Spacemacs keymap is the Vi modal model — the same Normal-mode
vocabulary as the Vi keymap (hjkl, w/b, gg/G, dd/yy/p, u,
/ + n/N, %, i/a/o to insert, : command line) — plus a
Space leader in Normal mode
that opens menu-like command sequences. Press Space, then the keys for the
command; the status bar shows the pending sequence (SPC …).
| Sequence | Action |
|---|---|
SPC SPC | Command palette |
SPC f f | Open file |
SPC f r | Open recent |
SPC f s | Save |
SPC f p | Switch project |
SPC b n / b p / b d | Next / previous / close buffer |
SPC p p / p f / p t | Switch project / palette / file tree |
SPC g s / g g / g b | Git changes / status / blame |
SPC w / / w - / w d / w w | Split vertical / horizontal / unsplit / focus other |
SPC s s / s p | Find / search workspace |
SPC t n / t w | Toggle line numbers / whitespace |
SPC ; | Toggle comment |
SPC q q | Quit |
Esc cancels a pending leader sequence; an unknown sequence is reported in the
status bar.
What Each Keymap Does Today
The bindings below are exactly what Vix dispatches today. Menu mnemonics (Alt+…)
and the function keys (F1, F3, F10, F12) work in every keymap.
Apple (default)
Modifier shortcuts in the style of macOS and Windows — for example, Ctrl-C for
Copy, and Ctrl-D for forward delete (the character to the right of the
cursor), as in every macOS text field. Apple is not modal. See
../keybindings/index.md for the full list.
VSCode macOS
VS Code’s signature shortcuts (with Ctrl standing in for Cmd):
Ctrl+PQuick Open (open file by name),Ctrl+Shift+PCommand Palette.Ctrl+Shift+OGo to Symbol,Ctrl+Tworkspace symbol,Ctrl+GGo to Line.Ctrl+Btoggle the sidebar,Ctrl+Shift+Efocus the explorer,Ctrl+Jtoggle the bottom panel,Ctrl+`the terminal,Ctrl+Shift+MProblems.Ctrl+\split the editor;Ctrl+]/Ctrl+Shift+\jump to the matching bracket.- The familiar editing chords:
Ctrl+Ssave,Ctrl+Wclose,Ctrl+Ffind,Ctrl+Shift+Ffind in workspace,Ctrl+/comment,Ctrl+Rreplace,Ctrl+Shift+Kdelete line,Ctrl+Shift+Lselect all occurrences.
Emacs
Chorded commands with a Ctrl+X prefix and Meta (Alt) bindings:
Ctrl+X Ctrl+Fopen,Ctrl+X Ctrl+Ssave,Ctrl+X Ctrl+Cquit,Ctrl+X kclose,Ctrl+X bswitch buffer.- Windows:
Ctrl+X 2/Ctrl+X 3split,Ctrl+X 1/Ctrl+X 0unsplit,Ctrl+X oother pane. The which-key popup lists chords whileC-xpends. - Motion:
Ctrl+F/Ctrl+B(character),Alt+F/Alt+B(word),Ctrl+N/Ctrl+P(line),Ctrl+A/Ctrl+E(line ends),Ctrl+V/Alt+V(page),Alt+</Alt+>(buffer ends). - Kill ring:
Ctrl+Wkill,Alt+Wsave,Ctrl+Yyank,Ctrl+Kkill line. Alt+Xcommand palette (M-x),Ctrl+T/Alt+Ttranspose,Ctrl+/undo,Ctrl+Ddelete,Ctrl+Sfind,Ctrl+Gcancel.
Vi
Modal editing:
- Normal mode:
h/j/k/l,w/bwords,0/^/$,gg/Gfile ends,x,dd/yy/pcut/copy/paste line,uundo,/+n/Nsearch,%matching bracket, andi/a/I/A/o/O(which enter Insert mode). - Insert mode:
Escreturns to Normal mode. - Command line:
:w,:q,:q!,:wq/:x,:N(go to line),:e [path],:Ex.
The status bar shows -- NORMAL --, -- INSERT --, or the : command line,
followed by any count or operator you’ve typed so far (-- NORMAL -- 2d3).
Sublime
Sublime’s signature shortcuts (with Ctrl standing in for Cmd):
Ctrl+PGoto Anything (file finder),Ctrl+Shift+PCommand Palette,Ctrl+RGoto Symbol,Ctrl+GGoto Line.Ctrl+Dselect all occurrences of the word (Sublime’s add-next-occurrence, all at once),Ctrl+Lexpand selection to line,Ctrl+Jjoin lines,Ctrl+Mjump to the matching bracket.Ctrl+Shift+Dduplicate line,Ctrl+Shift+Kdelete line,Ctrl+/comment.Ctrl+Ffind,Ctrl+Hreplace,Ctrl+Shift+Ffind in files.Ctrl+Bbuild (runs the test suite),Ctrl+`the console (terminal).Ctrl+S/Ctrl+Shift+S/Ctrl+W/Ctrl+Shift+Tsave / save as / close / reopen closed.
Zed
Zed’s default Linux shortcuts (on macOS Zed uses Cmd where Linux uses
Ctrl; here Ctrl stands in for both):
-
Ctrl+P(orCtrl+E) file finder,Ctrl+Shift+PCommand Palette. -
Ctrl+Shift+Ooutline (symbols in this file),Ctrl+Tproject symbols,Ctrl+Ggo to line. -
Ctrl+Dselect the next occurrence,Ctrl+Shift+Lselect all occurrences,Ctrl+Lselect line,Ctrl+Mjump to the enclosing bracket. -
Ctrl+Shift+Dduplicate line,Ctrl+Shift+Kdelete line,Ctrl+/comment. -
Ctrl+Ffind,Ctrl+Hreplace,Ctrl+Shift+Fproject search. -
Ctrl+.code actions,Ctrl+Shift+Mdiagnostics. -
Alt+Up/Alt+Downmove the line,Alt+./Alt+,next / previous Git change. -
Ctrl+Bleft dock (the file explorer),Ctrl+Shift+Efocus the explorer,Ctrl+Jbottom dock,Ctrl+`terminal,Ctrl+Shift+GGit panel,Ctrl+,settings. -
Ctrl+N/Ctrl+S/Ctrl+Shift+S/Ctrl+W/Ctrl+Shift+W/Ctrl+Shift+T/Ctrl+Qnew / save / save as / close / close all / reopen closed / quit. -
Ctrl+Kthen:Ctrl+Ltoggle fold,Ctrl+0fold all,Ctrl+Junfold all,Ctrl+Ccomment,Ctrl+Skeyboard shortcuts,Ctrl+Wclose all,Ctrl+Zsoft wrap,Ctrl+Oopen a path,VMarkdown preview.
Zed’s other Ctrl+K chords (the theme picker, pane splits with the arrow
keys, Ctrl+K Ctrl+[/Ctrl+] recursive folds) are not bound yet.
Fresh
The default keymap of Fresh, a terminal editor with GUI-style keys:
Ctrl+PQuick Open (the file finder),Ctrl+Oopen a file by path,Ctrl+Nnew,Ctrl+Ssave,Ctrl+Qquit.Ctrl+Efocus the file explorer,Ctrl+Btoggle it.Ctrl+Ffind,Ctrl+Rreplace,Ctrl+Shift+Nfind previous,Ctrl+Ggo to line,Ctrl+]jump to the matching bracket.Ctrl+Dadd a cursor at the next match,Ctrl+Lselect line,Ctrl+Wselect word,Ctrl+Ttranspose characters,Ctrl+/comment.Ctrl+Kcut to the end of the line,Ctrl+Hdelete the word before the cursor.Alt+Up/Alt+Downmove the line,Alt+Left/Alt+Rightgo back / forward,Alt+.code actions,Alt+/project search.
Fresh’s Quick Open also runs commands after a >; in Vix, use the command
palette.
ttt
The default keybindings of ttt, a
terminal editor with GUI-style keys. ttt groups many commands under two-key
chords: press Ctrl+K or Ctrl+L, release, then press the letter.
Ctrl+Pcommand palette,Ctrl+Nnew,Ctrl+Ssave,Ctrl+Wclose,Ctrl+Qquit.Ctrl+Btoggle the sidebar (file explorer),Ctrl+0focus it,Ctrl+Tterminal.Ctrl+Ffind,Ctrl+Rreplace,Ctrl+Ggo to line,Ctrl+Dselect the next match,Ctrl+/comment,Ctrl+Ucomplete,Ctrl+.code actions.Alt+./Alt+,next / previous tab,Alt+Up/Alt+Downmove the line.Ctrl+Kthen:PQuick Open,Ssave as,Eexplorer,Fproject search,Rproject replace,CGit changes,Tterminal,Ihover,Lselect all matches,Kdelete line,Jjoin lines,Osort lines,Mmatching bracket,Bbottom panel,Ykeyboard shortcuts,,settings,[toggle fold,0fold all,9unfold all.Ctrl+L(language) then:Fformat,Rreferences,Igo to implementation,Tgo to type definition,Oorganize imports.
Their Alt+letter keys are left out, because in every Vix keymap
Alt+letter opens a menu. An unbound second key ends a chord and is not
typed. While a chord is
pending, the status bar shows C-k- (or C-l-) and the which-key popup lists
the second keys.
Helix
Selection-first modal editing, as in Helix: in Normal mode a motion selects, then an action acts on the selection. With nothing selected, an action acts on the character under the cursor.
- Select:
w/b/e(andW/B/Eover runs of non-whitespace) select to the next word start / previous word start / word end;f/t/F/T+ a character select to it on the line;xselects the line (press again to add the next line);%selects everything.h/j/k/lmove and drop the selection. - Act:
ddelete,cchange (delete, then Insert mode),yyank,p/Ppaste after / before,r+ a character replace each selected character,~switch case,>/<indent / outdent,Jjoin lines,u/Uundo / redo. - Selections:
vtoggles Select mode, where motions extend the selection;;collapses it;,drops extra cursors;Cadds a cursor on the line below;sselects regex matches inside the selection;*jumps to the next occurrence of the selection. - Several selections: with more than one selection (after
Cors), the motions (w/b/e,W/B/E,f/t/F/T,x,h/j/k/l) move every one, andd,c(then typing at every cursor),r,~,>/<,p/Pand.act on every one, each as one undo step.ycopies them all into the one register, joined by newlines in buffer order; pasting into the same number of selections puts one line back at each. The goto keys,J,I/A,o/O,*and search still act on the primary selection only. - Insert:
i/abefore / after the selection,I/Aat the line start / end,o/Oa new line below / above;Escreturns to Normal. - Counts: a number before a command repeats it:
3wselects the third word (v3weverything through it),2xtwo lines,5jmoves down five,3fxfinds the thirdx,2ppastes twice,10gggoes to line 10. - Repeat:
.repeats the last change on the current selection:d,cwith what you typed,i/awith what you typed,r,~,>/<, andp/P.3.repeats it three times. - Goto (
g):gg/gefile start / end,gh/gl/gsline start / end / first non-blank,gddefinition,gDdeclaration,gytype definition,giimplementation,grreferences,gn/gpnext / previous buffer;mmmatching bracket. - Space leader:
Space ffile picker,Space bbuffers,Space s/Space Ssymbols / workspace symbols,Space /global search,Space khover,Space rrename,Space acode action,Space ddiagnostics,Space p/Space P/Space ypaste / yank,Space ?command palette. The which-key popup lists the keys afterg,m, orSpace. - Command line and search:
:w,:q,:q!,:wq/:x,:N, plus Helix’s:write,:quit,:write-quit, and:o path/:open path(bare:oopens the file picker);/and?find,n/Nnext / previous.
The status bar shows -- NORMAL --, -- INSERT --, -- SELECT --, or the
: command line.
Not yet: named registers (yank and paste use the one clipboard, so several
selections share one register value); match mode beyond mm;
view mode (z), window mode (Ctrl+w), the jump list, macros, Alt-.,
and jump labels; reverse search with ?; and the block cursor.
Not Yet Built
The following are described in the broader keymap philosophy but are not implemented:
- Vi counts (
3w,2dd), text objects (diw), registers, and visual mode. - Emacs
Ctrl+Spacemark/region commands (useShift+motion to select).
Background
The keymaps treat the keyboard differently: as a way to trigger system actions (Apple, and the VS Code variant), as a language for text manipulation (Vi), or as a layered set of chords for executing functions (Emacs).
| Feature | Apple (macOS) | Vi | Emacs |
|---|---|---|---|
| Logic | System commands & UI focus | Modal “language” (verb + noun) | Layered modifiers & chords |
| Primary keys | Command (⌘) + Tab | Home row (h, j, k, l) | Control (⌃) + Meta (⌥) |
| Philosophy | Universal accessibility | Speed and home-row efficiency | Everything is a function |
Vix™ and Vix IDE™ are trademarks.