Helix Editor Keyboard Shortcuts

Complete Helix Editor keyboard shortcuts reference — 202 shortcuts across 13 categories. Quick reference cheat sheet for Linux & Mac.

Helix is a modal editor like Vim, but it reverses the grammar: you select first, then act. That single difference explains most of the keymap — x selects a line before d deletes it, w selects to the next word rather than merely moving — and once it clicks, the rest of the table is a set of small mode menus reached by a leading key. Helix ships with language servers and tree-sitter configured, so the code keys work out of the box.

Movement (Normal Mode) (25)

ShortcutAction
hMove Left
jMove Down
kMove Up
lMove Right
wNext Word Start
bPrevious Word Start
eNext Word End
WNext WORD Start
BPrevious WORD Start
ENext WORD End
fFind Next Char
tFind Till Next Char
FFind Previous Char
TFind Till Previous Char
GGo to Line Number
Alt + .Repeat Last Motion
HomeStart of Line
EndEnd of Line
Ctrl + BPage Up
Ctrl + FPage Down
Ctrl + UHalf Page Up
Ctrl + DHalf Page Down
Ctrl + IJump Forward
Ctrl + OJump Backward
Ctrl + SSave Selection to Jumplist

Changes (30)

ShortcutAction
rReplace Character
RReplace with Yanked
~Switch Case
`To Lower Case
Alt + `To Upper Case
iInsert Before
aAppend
IInsert at Line Start
AInsert at Line End
oOpen Line Below
OOpen Line Above
.Repeat Last Insert
uUndo
URedo
Alt + uEarlier in History
Alt + ULater in History
yYank
pPaste After
PPaste Before
>Indent
<Unindent
=Format Selection
dDelete Selection
Alt + dDelete without Yanking
cChange Selection
Alt + cChange without Yanking
Ctrl + AIncrement Number
Ctrl + XDecrement Number
QRecord Macro
qReplay Macro

Shell (5)

ShortcutAction
|Pipe Through Shell
Alt + |Pipe To Shell
!Insert Command Output
Alt + !Append Command Output
$Keep Piped Selections

Selection (35)

ShortcutAction
sSelect Regex Matches
SSplit on Regex
Alt + sSplit on Newlines
Alt + -Merge Selections
Alt + _Merge Consecutive
&Align Selections
_Trim Whitespace
;Collapse Selection
Alt + ;Flip Selection
Alt + :Ensure Forward Direction
,Keep Primary Selection
Alt + ,Remove Primary Selection
CAdd Cursor Below
Alt + CAdd Cursor Above
(Rotate Selection Backward
)Rotate Selection Forward
Alt + (Rotate Contents Backward
Alt + )Rotate Contents Forward
%Select Entire File
xSelect Line
XExtend to Line Bounds
Alt + xShrink to Line Bounds
JJoin Lines
Alt + JJoin and Select Space
KKeep Matching Selections
Alt + KRemove Matching Selections
Ctrl + CToggle Comments
Alt + oExpand Selection
Alt + iShrink Selection
Alt + pPrevious Sibling Node
Alt + nNext Sibling Node
Alt + aSelect All Siblings
Alt + ISelect All Children
Alt + eEnd of Parent Node
Alt + bStart of Parent Node

Search (6)

ShortcutAction
/Search
?Search Backward
nNext Match
NPrevious Match
*Search Selection
Alt + *Search Selection Literally

Minor Modes (8)

ShortcutAction
vSelect Mode
gGoto Mode
mMatch Mode
:Command Mode
zView Mode
ZSticky View Mode
Ctrl + WWindow Mode
SpaceSpace Mode

View Mode (z) (6)

ShortcutAction
zzCenter Line
ztAlign to Top
zbAlign to Bottom
zmAlign to Middle
zjScroll Down
zkScroll Up

Goto Mode (g) (19)

ShortcutAction
ggGo to File Start
geGo to File End
gfGo to File
ghGo to Line Start
glGo to Line End
gsFirst Non-Whitespace
gtTop of Screen
gcMiddle of Screen
gbBottom of Screen
gdGo to Definition
gyGo to Type Definition
grGo to References
giGo to Implementation
gaAlternate File
gmLast Modified File
gnNext Buffer
gpPrevious Buffer
g.Last Modification
gwGo to Word

Match Mode (m) (6)

ShortcutAction
mmMatching Bracket
msSurround Add
mrSurround Replace
mdSurround Delete
maSelect Around Object
miSelect Inside Object

Window Mode (Ctrl + W) (10)

ShortcutAction
Ctrl + W, WNext Window
Ctrl + W, VVertical Split
Ctrl + W, SHorizontal Split
Ctrl + W, FOpen File in Split
Ctrl + W, HMove to Left Split
Ctrl + W, JMove to Split Below
Ctrl + W, KMove to Split Above
Ctrl + W, LMove to Right Split
Ctrl + W, QClose Window
Ctrl + W, OOnly This Window

Space Mode (23)

ShortcutAction
Space, fFile Picker
Space, FFile Picker (cwd)
Space, bBuffer Picker
Space, jJumplist Picker
Space, gChanged File Picker
Space, kShow Documentation
Space, sDocument Symbols
Space, SWorkspace Symbols
Space, dDocument Diagnostics
Space, DWorkspace Diagnostics
Space, rRename Symbol
Space, aCode Action
Space, hSelect References
Space, 'Last Picker
Space, cToggle Comments
Space, CToggle Block Comments
Space, pPaste Clipboard After
Space, PPaste Clipboard Before
Space, yYank to Clipboard
Space, YYank Main Selection
Space, RReplace with Clipboard
Space, /Global Search
Space, ?Command Palette

Unimpaired (22)

ShortcutAction
]dNext Diagnostic
[dPrevious Diagnostic
]DLast Diagnostic
[DFirst Diagnostic
]fNext Function
[fPrevious Function
]tNext Type Definition
[tPrevious Type Definition
]aNext Parameter
[aPrevious Parameter
]cNext Comment
[cPrevious Comment
]TNext Test
[TPrevious Test
]pNext Paragraph
[pPrevious Paragraph
]gNext Change
[gPrevious Change
]GLast Change
[GFirst Change
]SpaceAdd Newline Below
[SpaceAdd Newline Above

Insert Mode (7)

ShortcutAction
EscapeBack to Normal Mode
Ctrl + RInsert Register
Ctrl + KDelete to Line End
Ctrl + HDelete Previous Char
Ctrl + JInsert New Line
Alt + BackspaceDelete Previous Word
Alt + DeleteDelete Next Word
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

Vim Emacs Nano Zed Editor VS Code tmux

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Helix Editor documentation — docs.helix-editor.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Select, then act

In Normal mode every motion extends a selection: w selects to the next word start, x selects the current line and pressing it again extends by a line, % selects the whole file. Then d deletes, c changes, y yanks the selection — there is no operator-pending mode. s is the key Vim users miss most: it prompts for a regex and turns every match inside the selection into its own cursor, so "change every foo in this function" is x a few times, s, type foo, then c. , collapses back to one cursor and ; collapses a selection to its cursor.

Structural selection

Because Helix parses code with tree-sitter, Alt + o expands the selection to the enclosing syntax node and Alt + i shrinks it back; Alt + n and Alt + p move to sibling nodes. mi and ma select inside or around a text object — brackets, quotes, or tree-sitter objects such as a function or argument — and mm jumps to the matching bracket. The bracket-pair keys ]f and [f step between functions, ]d and [d between diagnostics.

Mode menus

A leading key opens a menu that shows its options on screen, so the second key never has to be memorised. g is goto: gd definition, gr references, gg file start, ge file end. Space is the picker menu: Space, f files, Space, b buffers, Space, s symbols, Space, a code actions, Space, r rename, Space, / global search. Ctrl + W is window mode with Ctrl + W, V and Ctrl + W, S for vertical and horizontal splits. : opens the command line, where :q, :w and :tutor live.

Frequently asked questions

How is Helix different from Vim?

The order is reversed: select a region first, then apply an action. Motions extend the selection, and multiple cursors replace most macros.

How do I exit Helix?

Press Escape to return to Normal mode, then type :q and Enter (or :wq to save first).

How do I edit every occurrence of a word at once?

Select the region (x for lines, % for the file), press s, type the pattern and press Enter. Each match becomes a cursor; c changes them all.

Do I need to configure a language server?

No. Helix detects installed language servers automatically and ships language configuration; run :checkhealth for a status list.

🤖 Ask AI about Helix Editor shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok