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™ for Sublime Text users

Sublime Text is a fast, polished desktop editor with Goto Anything, multiple selections and a Python plugin API. Vix is a terminal editor with a language server client, a debugger and a Git client built in. This page shows which of your Sublime keys work in Vix’s Sublime keymap, what is different, and where Sublime Text is still the better tool.

Claims about Sublime Text describe its documented defaults; see the Sublime Text documentation. Every claim about Vix cites the test or file that checks it.

Turn on the Sublime keymap

Pick View → Keymap… → Sublime, or set keymap = "sublime" in config.toml.1 In a terminal, Ctrl stands in for Cmd on macOS (see Keymaps). F1 lists every key the active keymap binds.2

Your keys

These rows are copied from the generated Sublime keybindings reference; a test fails if a row here stops matching it. The keys every keymap shares (F2 rename, F12 go to definition, Ctrl+Space completion and more) are in the shared bindings.

KeyActionAction ID
C-pOpen…file.open
C-S-pCommand Palettetools.palette
C-rGo to Symbolnav.goto_symbol
C-gNumbernav.goto_line
C-dSelect All Occurrencesedit.select_all_occurrences
C-lSelect Lineedit.select_line
C-jJoin Linesedit.join_lines
C-mJump to Matching Bracketedit.match_bracket
C-S-dDuplicate Lineedit.duplicate_line
C-S-kCut Linecut_line
C-/Commentedit.toggle_comment
C-fFind…edit.find
C-hFind & Replaceedit.replace
C-S-fSearch in Workspacesearch.workspace
C-bRun Teststools.test
`C-``Show/Hide Terminaltools.terminal
C-sSavefile.save
C-S-sSave As…file.save_as
C-wClosefile.close
C-S-tReopen Closed Tabfile.reopen_closed
C-S-wClose All Tabsfile.close_all

What is different

  • Ctrl+P opens the file finder, and Ctrl+Shift+P the command palette. The palette takes Goto Anything’s prefixes: @ for a symbol in the file, : for a line, > for a command, plus # for an open buffer and @@ for a symbol anywhere in the workspace.3

  • Ctrl+D selects every occurrence at once. Sublime Text’s Ctrl+D adds the next occurrence one at a time (multiple selection with the keyboard). For that behavior, bind the key to spawn_multi_cursor (add the next occurrence as a caret) in keybindings.toml:4

    [[binding]]
    key_token = "C-d"
    action_id = "spawn_multi_cursor"
    
  • Ctrl+Shift+K cuts the line to the clipboard (cut_line) rather than only deleting it.

  • Ctrl+B runs the project’s tests (tools.test); there are no Sublime build systems. Vix finds tasks in Makefile, package.json, a justfile and more (see Tasks).

  • Column selection is Edit → Select → Column Select Up/Down (Alt+Shift+Up / Alt+Shift+Down in the default keymap), and typing then edits every line of the block.5

What Vix adds

  • A language server client (diagnostics, completion, rename, references, code actions) that starts the usual server for a language once you trust the workspace.6 Sublime Text gets this from the LSP package.
  • A debugger for any Debug Adapter Protocol adapter.7
  • A Git panel that stages and commits, and blame.8
  • Integrated terminals.9
  • Persistent, branching undo with a tree you can browse.10
  • Search and replace across the workspace, with results you can edit in place.11
  • It runs in a terminal, so it works over SSH and in tmux; remote folders open with File → Open Remote….12

Where Sublime Text is the better choice

  • A native desktop window. Smooth scrolling, font rendering and the minimap of a GPU-drawn window; Vix draws a character grid.
  • Packages. Sublime Text’s Python API and its package ecosystem are far larger than Vix’s Rhai scripts and plugins.13
  • Maturity. Vix is young.

See also


Vix™ and Vix IDE™ are trademarks.


  1. View → Keymap… sets the keymap setting: tui/tests/integration/keymaps.rs, view_keymap_submenu_actions_set_the_keymap. ↩

  2. F1 lists the active keymap’s keys: tui/tests/integration/keymaps.rs, help_overlay_includes_the_active_keymap_chords. ↩

  3. The prefixes are Mode::from_input in crates/vix-palette/src/lib.rs. ↩

  4. A keybindings.toml entry wins over the active keymap: tui/tests/integration/keymaps.rs, key_override_wins_over_a_builtin_keymap_binding. ↩

  5. tui/tests/integration/editing.rs, select_all_occurrences_creates_multi_carets, ctrl_d_adds_a_caret_and_edits_all_occurrences and column_select_block_edits_multiple_lines. ↩

  6. Every LSP action against a mock server: tui/tests/integration/lsp.rs, every_lsp_action_applies_a_mock_servers_reply; servers start only in a trusted workspace: a_builtin_language_server_starts_only_in_a_trusted_workspace. ↩

  7. Breakpoints and the debugger actions: tui/tests/integration/debugger.rs, edit_breakpoint_sets_condition_hit_count_and_log_message. ↩

  8. Stage and commit, blame: tui/tests/integration/git.rs, git_panel_stages_and_commits and git_blame_annotates_the_current_line. ↩

  9. tui/tests/integration/terminals.rs, several_terminals_each_get_their_own_keys. ↩

  10. persistent_undo defaults to true in crates/vix-settings/src/lib.rs; the tree view: tui/tests/integration/undo_tree.rs, moving_the_selection_previews_and_enter_keeps_the_state. ↩

  11. Experimental. tui/tests/remote_ui.rs, open_remote_connects_saves_survives_a_lost_connection_and_reconnects; see remote editing. ↩

  12. Rhai scripts add palette commands and key bindings: tui/tests/integration/scripting.rs, script_command_appears_in_the_command_palette and a_scripts_bind_key_request_actually_fires_through_on_key; plugins are enabled and disabled from a chooser: plugin_chooser_enables_and_disables_a_plugin. ↩