If you are a developer, you have likely heard the whispers about Vim. You know the legend: it’s not just an editor, it’s a language. It allows you to manipulate text at the speed of thought.
But there is a problem. Vim is old. It carries 30 years of baggage. To make it look and feel modern, you have to spend weeks configuring plugins, debugging dotfiles, and memorizing arcane commands.
Enter Helix.
Helix is a “post-modern” text editor. It takes the brilliant philosophy of Vim—modal editing, keyboard-centricity, text objects—and wraps it in a modern, user-friendly package. It comes with “batteries included,” meaning you get auto-complete, fuzzy finding, and syntax highlighting right out of the box.
This guide will take you from a mouse-using “crawler” to a keyboard-centric “flyer.”
Before we touch the keyboard, we need to change how you think. The bottleneck in programming isn’t how fast you type; it’s how fast you can translate a thought into code.
The mouse is an efficiency killer. Every time you move your hand from the keyboard to the mouse to click a file or scroll down, you perform a “context switch.” It breaks your flow.
Your first goal isn’t speed. Your first goal is to make the mouse dead to you.
If you catch yourself reaching for the mouse, stop. Ask yourself: “How could I have navigated there using the keyboard?” It will feel slow at first, like learning to walk again. But after a week, you will be flying.
Standard editors have one mode: you type, and text appears. Helix has two main modes:
Pro Tip: You will be hitting Escape constantly. Go into your computer settings right now and remap Caps Lock to Escape. Your pinky finger will thank you.
This is where Helix improves on Vim.
In Vim, you act blindly. You type d (delete) and the editor waits. You then type w (word). You committed to the action before you saw what it applied to.
Helix reverses this. It uses a Selection → Action model.
w to select the word. The editor highlights it.d to delete it.This is the “Golden Rule” of Helix: Always select what you want to change, then change it.
w (word), x (line), mi" (inside quotes).d (delete), c (change), y (copy), p (paste).Most users scroll. Helix users teleport.
Forget the arrow keys. Keep your hands on the home row:
h (Left), j (Down), k (Up), l (Right).If you want to go to the bottom of the file, don’t hold j for ten seconds. Use the Go menu.
gk: Go to the top.ge: Go to the bottom.gh: Go to the start of the line.gl: Go to the end of the line.f and t)This is how experts move on a single line. Let’s say you are at the start of a line and you want to edit a function call print(variable).
l twenty times.f( to Find the opening parenthesis. Your cursor snaps right to it.t( (Till).This is where the “Language” of Helix shines. Stop trying to highlight text manually. Use Match Mode.
Helix understands the structure of your code. It knows what a “word” is, what a “paragraph” is, and what a “function” is. These are called Text Objects, and they live under the m (Match) key.
The Scenario: You want to change the text inside a string: const name = "John Doe";
mi" (Match Inside ”). Helix instantly selects “John Doe”.c (Change). The text vanishes, and you are in Insert Mode.You can do this for anything:
miw: Inside Word.mi(: Inside Parentheses.maf: Around Function (selects the whole function).Standard editors have one clipboard. If you copy A, then delete B, A is gone. Helix uses Registers—named clipboards.
"ay"apIn Vim, if you want to rename a variable in 5 places, you change one, then repeat the command 4 times. Helix has a better way.
miw).s to Select Matches. Helix highlights every instance of that variable in the file.Enter.c to change. You are now typing in 5 places simultaneously.Vim requires plugins like NERDTree or Ctrl-P to navigate projects. Helix builds these in. The Space key is your command center.
A common fear for new Helix users is: “What if I learn this, but then I have to use Vim on a server? Will I be broken?”
The answer is No.
Since Helix uses Selection → Action, it is mathematically identical to Vim’s Visual Mode. If you are forced to use Vim, just follow this one rule: Always press v first.
w (select) -> d (delete).v (visual) -> w (select) -> d (delete).If you master Helix, you have automatically mastered Vim Visual Mode. You are safe.
Don’t try to learn all of this in a day. You will burn out.
hjkl and w/b.miw and mi".s) and the Space menu.Welcome to the future of editing. Once you start thinking in Helix, you will never want to go back.
Enjoyed the article? I write about 1-2 a month. Subscribe via email or RSS feed.