Skip to content

Coming From Helix ​

HUME shares Helix's core editing model (select-then-act, selections as first-class citizens), so the mental shift is small. The differences are mostly in how selections grow, in configuration, and in tooling.

To keep your Helix keys, install the helix.hume plugin. It binds every Helix key HUME has an action for; its README lists what it changes and what it can't match. The rest of this page describes HUME's own keys.

The first ten minutes with HUME ​

Opening a file ​

hume file.txt:42:5 and :e path work as in Helix, including :e on a path that doesn't exist yet: the first :w creates the file. :o / :open are not aliases; use :e.

The fuzzy finder is a plugin. Helix's Space f and Space b become z f and z b once core:pickers is loaded. The starter config loads it, along with language server support and other plugins, so copy that first. See Fuzzy Finder.

Editing ​

Type :tutor and press Enter. The tutor is your own copy, so edit it freely. Make the same edits you would in Helix on its opening paragraphs, finding each line with / as you would there:

EditHelixHUME
Delete Welcome. from Welcome. This buffer is your practice space./Welcome Enter v t T d/Welcome Enter e t T d
Change practice to play on the same line, then undo it with u/practice Enter c play Esc/practice Enter c play Esc
Copy that line to another applicationx Space yx y
Delete the two lines of When you are ready, … move down./When you Enter x x d/When you Enter x Ctrl-x d

What each step shows:

  • t only moves; Extend mode makes it select. f, F, t and T move the cursor and select nothing, where Helix selects up to the target. e toggles Extend mode (Helix's v), where every motion grows the selection. So t T grows Welcome to Welcome. , and d deletes it and leaves the mode. On a terminal with the kitty keyboard protocol, holding Ctrl does the same for one motion: Ctrl-t T grows the selection without entering Extend mode.
  • A second x moves on. Each x selects the next line on its own, dropping the previous one. Ctrl-x extends instead. See Line selection.
  • Esc keeps what you typed selected. After the change, play is still selected instead of a plain cursor, ready to act on again: delete it, surround it, search for it. One consequence: i re-enters before that selection, so use a to keep typing after it. Disable this with the insert-select-on-exit option (see Buffer options).
  • y reaches the system clipboard. It copies to the clipboard as well as HUME's own kill ring. p pastes your last yank or delete, or text you have since copied in another application. See Copy & Paste.

Saving and quitting ​

:w, :qa and :qa! work as in Helix. There is no :x; :write-quit is the long form of :wq.

:q closes the focused pane when the tab has several, and the tab when other tabs are open. On the last pane it closes the current buffer, not the editor: if another file is still open you land on it, and HUME quits only when no other file or unsaved buffer is left. :q! and :wq close the same way, discarding your changes or saving them first. :qa leaves in one step. See Quitting.

The tutor you started is the hands-on tour of everything else: carry on from its Introduction. To start over with a clean copy, close it with :bd! and run :tutor again.

Bringing your config over ​

HUME has no TOML config file. Every setting and keybinding is a call to a Scheme function in init.scm: (set-option! "name" value) for options, (bind-key! 'normal "keys" "command") for keys. init.scm is a Scheme program, so it can also use conditionals, loops and functions.

SettingHelix config.tomlHUME init.scm
Themetheme = "onedark"(set-option! "theme" "onedark")
Line numbers[editor]
line-number = "relative"
(set-option! "gutter-line-numbers" "hybrid"), the default: the cursor line shows its own number. "relative" shows 0 there
Scroll paddingscrolloff = 5(set-option! "scroll-margin" 5)
Mousemouse = false(set-option! "mouse" #f)
Soft wrap[editor.soft-wrap]
enable = true
(set-option! "wrap-mode" "indent"), the default: breaks between words and keeps the line's indent
Whitespace indicators[editor.whitespace]
render = "all"
(set-option! "whitespace-space" "all")
(set-option! "whitespace-tab" "all")
(set-option! "whitespace-newline" "all")
Insert-mode cursor[editor.cursor-shape]
insert = "bar"
(set-option! "insert-cursor-shape" "bar"), the default
Auto-pairsauto-pairs = false(set-option! "insert-auto-pairs" #f)
Inlay hints[editor.lsp]
display-inlay-hints = true
(load-plugin! "core:lsp" #:config (hash 'inlay-hints #t))
Statusline[editor.statusline]
left = [...]
(configure-statusline! '(...) '(...) '(...)), see Statusline
Keybinding[keys.normal]
"C-j" = "move_line_down"
(bind-key! 'normal "ctrl-j" "move-down")

Indentation (Helix's per-language indent.tab-width/indent.unit in languages.toml) is a buffer option in HUME, so you set it per language from a hook instead of a separate file:

scheme
(register-hook! 'on-language-set
  (lambda (pane lang)
    (when (equal? lang "python")
      (set-buffer-option! pane "indent-width" 4)
      (set-buffer-option! pane "indent-style" "soft"))))

bind-key! takes a command name (listed in Editor Commands), not a key sequence: there's no key-to-key remapping.

Themes ​

HUME reads Helix's theme format: the same TOML with [palette] indirection, the same color forms (hex, a palette name, or one of the sixteen bare terminal color names like red), the same modifier names, and the same underline styles. Most Helix themes work unchanged.

  • Your own themes: copy them from ~/.config/helix/themes/ to ~/.config/hume/themes/ (%APPDATA%\hume\themes\ on Windows). inherits works too. HUME bundles many of Helix's popular themes (onedark, catppuccin_mocha, gruvbox, nord, …), so a theme built on one of them still finds its parent.
  • Published themes: run :plum-install-theme <user/repo> and PLUM fetches the theme repo from GitHub, the same way it installs plugins.

Type :theme and press Tab to try one for the session, then set it as your default in your init.scm. Here's Everforest, a theme ported as-is from Helix:

scheme
(set-option! "theme" "everforest_dark")

HUME's tab bar reads ui.tabline, and falls back to Helix's ui.bufferline when a theme doesn't set it. Themes covers the few other places the formats differ and links a visual theme editor.

What's the same ​

  • Select-then-act: motions change the selection; operators act on it
  • Selections are always visible and always cover at least one character
  • : for typed commands, / for search
  • d, c, y, p for delete/change/yank/paste
  • u / U undo / redo
  • > / < indent / unindent the lines a selection touches, with count support (3>). HUME rewrites each line's whole indent in the buffer's indent-style; see Lines and alignment
  • m i or m a followed by f, t, a, c, u, v or x selects the enclosing function, class/type, argument, comment, unit test, value, or tag pair. The letters match Helix's match-mode text objects, except unit test (T → u) and value (e → v). Function, class, comment, unit test and value need a grammar with text-object support; argument and tag pair fall back to a plain-text scan without one. See Text objects
  • Enter, o and O indent new lines with Helix's indentation queries (see Indentation), written in the buffer's indent-style. There is no indent-heuristic setting: HUME always uses Helix's default, hybrid. indent-smart turns automatic indentation off. HUME also moves a closing bracket or keyword back as you type it
  • Syntax highlighting uses the same tree-sitter grammars as Helix, with Helix's queries, and the language servers each language uses, how they start, their root markers and default settings follow Helix's own defaults
  • Insert mode shows a bar cursor; Normal and Extend mode a block

Key differences ​

Plugin system ​

HUME's plugins are written in Steel Scheme, and the core plugins ship with every release. Plugins written for Helix's Steel plugin work won't run in HUME: the two editors expose different functions to scripts. PLUM is HUME's plugin manager, installing plugins from GitHub. Installing a plugin walks through it with grep.hume, a live-grep picker plugin.

Growing selections ​

Helix grows a selection in select mode (v). HUME's equivalent is Extend mode (e), where every motion extends until you act or press Esc. HUME also has one-shot extends (Ctrl-w, Ctrl-b, …) that extend for a single keystroke without changing mode. They need the kitty keyboard protocol, except Ctrl-x, which works on any terminal.

Word motions and whitespace ​

Helix's w selects from the cursor up to the start of the next word, so the selection ends with the whitespace after a word. HUME's w selects the next whole word together with the whitespace before it, so deleting it never leaves a double space. b, W and B follow the same rule.

To take the whitespace after the word instead, as Helix does, set word-selects-whitespace to after:

scheme
(set-option! "word-selects-whitespace" "after")

w still selects a whole word: with the cursor inside foo, Helix's w selects the rest of foo, while HUME's selects the next word. off selects the bare word with no whitespace. See Buffer options. helix.hume sets the option to after and makes w, e and b select from the cursor as Helix's do.

Line selection: x vs Extend mode (e) ​

Both editors bind x to select the current line. They differ on the second press:

PressHelix xHUME xHUME e then x
1stSelect whole lineSelect whole lineSelect whole line
2ndExtend to next lineJump to next line (re-anchor)Extend to next line
3rdExtend to next lineJump to next line (re-anchor)Extend to next line

For Helix's growing behavior, enter Extend mode first (e), where x, like every other motion, extends rather than replaces. Ctrl-x extends for one press without entering Extend mode.

X is the backward form. In Normal mode, on a whole-line selection, it jumps to the line above. To shrink a line selection grown downward, press X in Extend mode, or Ctrl-Shift-x (kitty only); each press removes one line. Helix has no key for that.

Multiple selections ​

Both editors share the same foundations (multiple cursors, ; to collapse), but keybindings and a few operations differ:

OperationHelixHUME
Copy selection on line belowCC: duplicates each selection to the same column on the next line, adding a cursor. Column editing works through these cursors; there is no rectangular block selection
Copy selection on line aboveAlt-Cno default key: bind copy-selection-on-prev-line (see below)
Split selections into linesAlt-sS
Split selections on a regexS(none): s keeps the regex matches instead
Remove primary selectionAlt-,Ctrl-, (kitty only)
Flip selectionsAlt-; (Normal and Select mode)Ctrl-e (Normal and Extend mode)
Merge consecutive selectionsAlt-_ (touching selections only); Alt-- merges all into one spanautomatic: selections that share a character merge; touching ones stay separate
Align selections&&
Trim whitespace at edges__
Sort:sort:sort (different semantics; see below)
Narrow each selection to regex matchesss
Select all search matchesno dedicated key; % (select whole buffer) then sm /
Search the selection, adding word-boundary anchors*(none)
Search the selection literallyAlt-*Ctrl-/ (kitty only)
Search the word under the cursor(unbound)*

To copy selections onto the line above as Helix's Alt-C does, bind the command in your init.scm:

scheme
(bind-key! 'normal "alt-C" "copy-selection-on-prev-line")

WARNING

HUME's * ignores any existing selection: it searches the word (or punctuation run) under the cursor and selects it. To put the literal selection search on * instead, rebind it in your init.scm:

scheme
(bind-key! 'normal "*" "search-selection")

WARNING

HUME's :sort permutes whole rows, keyed by whatever text you select on each one. Select whole lines and it behaves like a plain line sort. Select a column across several lines and it sorts by that column, moving the entire rows along with it. % then :sort sorts the whole file directly, with no splitting step.

Statusline ​

Helix configures its statusline in TOML ([editor.statusline]); HUME configures it from Scheme, placing elements in left, center and right zones:

scheme
(configure-statusline! '("Mode" "FileName") '("SearchMatches") '("Position"))

You can also add custom elements written in Scheme; see Statusline.

Bufferline vs tab bar ​

Helix's bufferline (never / always / multiple) is a strip of open buffers. HUME's bar lists tab pages instead: each tab holds its own pane layout, and buffers are shared across tabs, so you reach them with :ls, :b, :bn and :bp, not from the bar. See Tabs.

:set global tabline=never/always/dynamic controls visibility. dynamic (the default) is the analogue of Helix's multiple: the bar shows only once a second tab is open. A Helix theme colors it through ui.bufferline; see Themes.

Surround ​

Helix uses m s, m d, m r for surround. HUME has its own default bindings, and helix.hume puts Helix's back:

ActionHUMEhelix.hume
Wrapm w + charm s + char
Deletem s + char, then dm d + char
Replacem s + char, then rm r + char

In HUME, m s selects the surrounding pair, and the ordinary d and r act on it.

Matching brackets and structural navigation ​

Helix's match mode binds m m to jump to the matching bracket. HUME binds the same jump to #, which also matches HTML/XML/JSX tag pairs. % selects the whole buffer in both editors.

Helix's bracket mode (] or [ plus an object letter) jumps to the next or previous function, class, argument and so on. HUME puts these jumps on the g prefix, with the same letter as each m i/m a text object, lowercase forward and uppercase backward: g f/g F, g t/g T, g a/g A, g c/g C, g u/g U (unit test), g v/g V (value), g x/g X (tag pair). See Structural navigation.

What Helix has that HUME doesn't ​

  • * searching the selection with automatic word-boundary anchors (see Multiple selections)
  • Splitting selections on a regex (S)
  • Inserting or appending a command's output (!, Alt-!), piping selections to a command and ignoring its output (Alt-|), and filtering selections by a command's exit status ($). HUME's | pipes each selection through a command, as Helix's does, and in Insert mode Ctrl-| (kitty only) inserts a command's output at each cursor. See Shell commands
  • Merging every selection into one span across gaps (Alt--)
  • :x and :o/:open as command aliases; use :wq/:write-quit and :e instead

What HUME has that Helix doesn't ​

  • A plugin manager (PLUM) that installs Scheme plugins from GitHub
  • Tab pages: each holds a whole pane layout, distinct from a strip of buffers
  • Smart paste with a kill ring
  • Hooks (on-buffer-open, on-buffer-save, …)
  • One-shot extends that extend a single motion without switching to a select/extend mode
  • Backward line-selection shrinking (X in Extend mode, or Ctrl-Shift-x with kitty; see Line selection)
  • Argument and tag pair objects that also work in a buffer with no grammar (m i a/m i x), and tag navigation that does too (g x)
  • Custom statusline elements written in Scheme
  • Configuration in a programming language (init.scm): conditionals, loops, and custom commands, not static TOML

Released under the MIT License.