העמוד הזה עוד לא תורגם; מוצגת הגרסה באנגלית.

בטא בקרוב. הפיצ׳ר עדיין בפיתוח, ולכן שמות ופרטים עשויים להשתנות לפני השחרור.

Modal editing

Modal editing gives code editors Vim-style Normal, Insert and Visual modes, with the familiar motions and operators. Ingot's own shortcuts and the agent chat keep working as usual.

Turn it on

WayHow
Command paletteEditor: Toggle Modal Editing
Shortcut⌘⌥⇧V (Ctrl+Alt+Shift+V on Windows and Linux)
Settings"ingot.editor.modalEditing": true in your user settings.json
{
  "ingot.editor.modalEditing": true
}

Turning it off detaches it from every open editor at once. Click the mode in the status bar to turn it off too.

This feature used to be called Vim mode, with the setting editor.vimMode and the command Editor: Toggle Vim Mode. The old setting is no longer read, so set ingot.editor.modalEditing if you had it on.

Status bar

While modal editing is on, the left side of the status bar shows the current mode, colored so you can tell at a glance:

TextMode
NORMALmoving and running commands
INSERTtyping text
VISUAL, VISUAL LINE, VISUAL BLOCKselecting
REPLACEoverwriting text

A thin command line at the bottom of the editor shows what you type after : and any messages.

Ex commands

CommandDoes
:w, :writesave
:q, :quitclose the editor
:q!discard changes and close
:wq, :xsave and close
:wasave all
:qaclose all editors

Motions and operators (hjkl, w, b, gg, G, 0, $, dd, yy, p, ciw, . and so on) work as in Vim.

Where it applies

  • Code editors only. The agent composer, search fields and other inputs type normally.
  • Ingot shortcuts come first. Go to File, the command palette and agent shortcuts still work from Normal mode.
  • Escape closes a suggestion or find widget and leaves Insert or Visual mode in one press.
Not supported yet: a .vimrc, custom key mappings, relative line numbers, and :e, :sp or :w <file>.