No history yet

Selection First Paradigm

The Selection First Paradigm

Most text editors, like Vim, follow a verb-noun pattern. You decide on an action (the verb, like delete), and then specify what to act on (the noun, like word). You might type dw to delete a word. It’s effective, but you only see the result after you've committed to the action.

Helix is a Kakoune-inspired editor with built-in LSP support, multiple cursors, and tree-sitter integration.

Helix flips this model on its head. It uses a noun-verb approach: first you select, then you act. Every movement you make creates or modifies a selection. This gives you immediate, constant visual feedback. You always know exactly what text will be affected before you type a command. It’s a subtle shift that makes editing feel more precise and intuitive.

Movement is Selection

In Helix, there is no separate "Visual Mode" like in Vim. You are always selecting text. When you open a file, you have a selection that is one character wide: the character under your cursor.

Let's start with the basics. The h, j, k, and l keys work just as you'd expect for navigation, but with a twist. Pressing l moves the cursor right one character. But if you hold Shift and press L (which is the same as just L), you extend the selection one character to the right. The same logic applies to H, J, and K for extending the selection left, down, and up.

Word-based movements also build on this idea. The w key moves the cursor to the beginning of the next word. But in Helix, this also selects the text from your starting point to the new cursor position. Want to select the entire word you're on? Just press w.

Here are the fundamental word motions:

  • w: Move forward to the beginning of the next word.
  • b: Move backward to the beginning of the previous word.
  • e: Move forward to the end of the current word.

To extend a selection using these motions, you use the uppercase versions: W, B, and E. So if your cursor is at the start of a line and you press W three times, you'll have selected the first three words. This is the core of the noun-verb philosophy: build your selection, then act.

Acting on Selections

Once you have the perfect selection, you can manipulate it. The two most common actions are deleting and changing.

  • d: Deletes the current selection.
  • c: Changes (deletes and enters insert mode) the current selection.

Imagine your cursor is at the beginning of the phrase "the quick brown fox." You press w three times. The entire phrase is now highlighted. You can press d to delete it, or c to delete it and immediately start typing something new in its place. The beauty of this system is its efficiency; you see what you're targeting before you commit the change.

Try it out. Use w to select a word, then press d. Use b to select the word behind you, then press c and type a replacement. Notice how the cursor's movement defines the selection.

This paradigm extends to every part of the editor. For example, to select everything inside a pair of parentheses, you can use mi( (match inner parentheses). The text is selected, and now you are free to delete, change, or perform another action. You build your selection incrementally and act on it decisively.

KeyAction
wSelect to the beginning of the next word.
bSelect to the beginning of the previous word.
eSelect to the end of the current word.
lMove right (selects one character).
hMove left (selects one character).
dDelete the current selection.
cChange the current selection.

Now you can start to see why Helix feels different. It's not just about keybindings; it's a fundamental shift in how you interact with your text. You're always sculpting a selection, getting it just right before you make your move.

Quiz Questions 1/6

What is the primary editing model that Helix uses, which contrasts with Vim's verb-noun model?

Quiz Questions 2/6

What is the main advantage of Helix's "select-then-act" approach, according to the provided text?

Understanding this core concept is the key to mastering Helix. Everything else builds from this foundation of selecting first, then acting.