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

Migrating from another editor

How to bring your keys, settings, language servers, snippets, themes and tasks to Vix from VS Code, Neovim or Vim, Emacs, Helix, Sublime Text, a JetBrains IDE, Eclipse, Zed, Atom or Notepad++. Most of it is a keymap choice and a few lines of TOML. Vix does not import other editors’ configuration files, so this page shows what each setting becomes.

For what Vix does differently from your old editor, and where your old editor is still better, see the “Vix for … users” pages listed at the end.

Where Vix keeps its configuration

WhatWhere
Settingsconfig.toml: ~/.config/vix/ on Linux, ~/Library/Application Support/rs.vix/ on macOS, %APPDATA%\vix\config\ on Windows. Vix → Settings… opens it.
Project settings<project>/.vix/settings.toml, the same format, read only after you trust the workspace
Key overrideskeybindings.toml in the same directory as config.toml, or Vix → Keybindings…
Themesthemes/*.json in the same directory
Snippetsglobal/snippets/*.json, and media-types/<type>/<subtype>/snippets/*.json per language
Scriptsscripts/*.rhai, and <project>/.vix/scripts/
Tasks<project>/tasks.toml or <project>/.vix/tasks.toml

Settings apply in layers: defaults, then your config.toml, then the project’s .vix/settings.toml, then its [languages.<id>] tables. Vix also reads .editorconfig files (indent style and size, tab width, trailing whitespace, final newline), and a file’s own Vim modelines and Emacs file variables (vim: set sw=2 et:, -*- indent-tabs-mode: nil -*-; see Modelines), so files that already carry them need nothing more. Vix → Reload Settings applies an edited file without a restart. Every setting is listed in Configuration.

1. Choose your keys

Open View → Keymap… and pick the one you know. The choice is saved as the keymap setting.

Coming fromKeymapkeymap =
VS CodeVSCode macOS or VSCode Windows"vscode-macos", "vscode-windows"
Neovim, VimVi"vi"
EmacsEmacs"emacs"
Spacemacs, Doom EmacsSpacemacs"spacemacs"
HelixHelix"helix"
IntelliJ, other JetBrains IDEsIntelliJ macOS or IntelliJ Windows"intellij-macos", "intellij-windows"
EclipseEclipse"eclipse"
Sublime TextSublime"sublime"
ZedZed"zed"
Atom (no Atom keymap)VSCode macOS or VSCode Windows"vscode-macos", "vscode-windows"
Notepad++ (no Notepad++ keymap)Sublime"sublime"
Anything elseApple (the default)"apple"

To change a single key, add an override to keybindings.toml, or use Vix → Keybindings…:

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

Then run Tools → Reload Keybindings. Action ids are listed in the action reference, and the full key syntax is in Keybindings. F1 shows every key in the active keymap.

2. Copy your settings

The usual ones, by editor. Put them in config.toml.

SettingVS CodeNeovim, VimEmacsVix
Tab widtheditor.tabSizetabstop, shiftwidthtab-widthtab_width = 4
Spaces or tabseditor.insertSpacesexpandtabindent-tabs-modeindent_style = "spaces" (or "tabs")
Line numberseditor.lineNumbersnumberdisplay-line-numbers-modeline_numbers = true
Relative numberseditor.lineNumbers: "relative"relativenumberdisplay-line-numbers-type 'relativerelative_line_numbers = true
Soft wrapeditor.wordWrapwrapvisual-line-modesoft_wrap = true
Format on saveeditor.formatOnSavea plugin or autocommanda hookformat_on_save = true
Auto savefiles.autoSavea plugin or autocommandauto-save-visited-modeauto_save = "focus_lost" (or "interval")
Persistent undonot built inundofilea packagepersistent_undo = true (the default)
Reopen last fileswindow.restoreWindowssessionsdesktop-save-moderestore_session = true
Themeworkbench.colorThemecolorschemeload-themetheme = "Nord"

Helix users: editor.line-number = "relative" becomes relative_line_numbers = true, and editor.soft-wrap.enable becomes soft_wrap = true. A per-language setting, like a language block in languages.toml or VS Code’s "[python]", goes in a [languages.<id>] table in .vix/settings.toml.

Font, font size and ligatures belong to your terminal, not to Vix.

3. Language servers

If the usual server for your language is installed (rust-analyzer, gopls, pyright or pylsp, typescript-language-server, clangd, …), Vix starts it once you trust the workspace: the first time you open a matching file, the trust prompt names the server, and y starts it. To use another server, list it in config.toml; your entry replaces the built-in for its extensions:

[[lsp_servers]]
language_id = "rust"
extensions = ["rs"]
command = ["rust-analyzer"]

[[lsp_servers]]
language_id = "python"
extensions = ["py"]
command = ["pylsp"]

A server starts the first time you open a matching file. Install the server itself with your package manager (the same binaries your old editor used: rust-analyzer, pyright or pylsp, gopls, typescript-language-server, …). Run vix --doctor to check that every configured server starts. See Language servers.

4. Debugging

Vix does not read VS Code’s launch.json or nvim-dap configurations. Each debug adapter is listed in config.toml, with the launch request’s arguments beside it:

[[debug_adapters]]
adapter_id = "debugpy"
extensions = ["py"]
command = ["python", "-m", "debugpy.adapter"]
[debug_adapters.launch]
console = "internalConsole"

{program} in a value becomes the current file. Start and attach from the Run menu. See tutorial 10.

5. Snippets

Vix snippets use the VS Code JSON shape (prefix, body, description), so most VS Code snippet files work as they are:

  1. Copy a language’s snippet file into media-types/<type>/<subtype>/snippets/, for example <config>/media-types/text/rust/snippets/rust.json, or into global/snippets/ for snippets you want everywhere.
  2. Rename a .code-snippets file to .json: only .json files are read.
  3. Remove any comments; the file must be plain JSON.

Tab stops and placeholders ($1, ${1:name}, $0) work. Variables such as $TM_FILENAME are inserted as written, not expanded. UltiSnips, LuaSnip and yasnippet files need converting by hand. Insert a snippet by typing its prefix and Tab, or from Tools → Snippets…. See Snippets.

6. Themes

Vix bundles 21 themes, including Solarized, Dracula, Nord, Gruvbox, Monokai, One Dark, Tokyo Night, Catppuccin Mocha and a high-contrast theme, plus the base16 schemes. Pick one from View → Theme. VS Code, TextMate and Vim color schemes are not imported; to match one, start from the closest bundled theme in View → Edit Theme…, which saves your version to themes/. See Themes.

7. Tasks and builds

Vix finds tasks without configuration in package.json, deno.json, composer.json, a justfile, Taskfile.yml, a Rakefile and a Makefile. VS Code’s tasks.json is not read: add anything else to tasks.toml in the project. The Project menu’s configure, compile, test, install, package and run commands can be fixed for a team in .vix/project.toml. See Tasks.

8. Plugins and scripts

There is no plugin marketplace. Much of what you used plugins for is built in: LSP, a debugger, Git with hunk staging, fuzzy finding, multiple cursors, a terminal, a file explorer, Org mode, a database client and a REST client. For the rest, Rhai scripts in scripts/ add commands and key bindings without a rebuild. A project’s own .vix/scripts/ run only after you trust the workspace. See Scripting.

What does not come across

  • Extensions and plugins, and any configuration written in Lua, Vimscript, Emacs Lisp, Python or JavaScript.
  • VS Code’s settings.json, keybindings.json, tasks.json and launch.json. Copy the settings by hand (step 2).
  • Color schemes from other editors (step 6).
  • Snippet variables and other editors’ snippet formats (step 5).

Editor by editor

What is different, and what your old editor still does better:

Side-by-side comparisons: VS Code, Neovim and Helix.


Vix™ and Vix IDE™ are trademarks.