Helix Cheatsheet
Helix Cheatsheet
h, Left Move left Ctrl- Save the current f Open file picker ` Set the selected text to
j, Down Move down s selection to the jumplist b Open buffer picker lower case
cheatography.com/hiddenmonkey/
Helix Keyboard Shortcuts
by HiddenMonkey via cheatography.com/85163/cs/31224/
Alt- Change selection (delete g Go to line number <n> else ! Run shell command, w, Switch to next window
c and enter insert mode, start of file inserting output before Ctrl-
without yanking) e Go to the end of the file each selection w
Ctrl- Increment object f Go to files in the selection Alt- Run shell command, v, Vertical right split
a (number) under cursor ! appending output after Ctrl-v
h Go to the start of the line
Ctrl- Decrement object each selection s, Horizontal bottom split
l Go to the end of the line
x (number) under cursor $ Pipe each selection into Ctrl-s
s Go to first non-whitespace
Q Start/stop macro shell command, keep f Go to files in the
character of the line
recording to the selected selections where selection in horizontal
t Go to the top of the screen command returned 0
register (experimental) splits
c Go to the middle of the
q Play back a recorded F Go to files in the
screen View mode
macro from the selected selection in vertical
register (experimental) b Go to the bottom of the z, c Vertically center splits
screen the line
h, Move to left split
Search d Go to definition (LSP) t Align the line to Ctrl-
/ Search for regex pattern y Go to type definition (LSP) the top of the h,
screen Left
? Search for previous pattern r Go to references (LSP)
b Align the line to j, Move to split below
n Select next search match i Go to implementation (LSP)
the bottom of the Ctrl-j,
N Select previous search a Go to the last accessed/alt‐
screen Down
match ernate file
m Align the line to k, Move to split above
* Use current selection as the m Go to the last modified/alt‐
the middle of the Ctrl-
search pattern ernate file
screen (horizont‐ k, Up
n Go to next buffer ally)
l, Move to right split
Minor modes
p Go to previous buffer j,down Scroll the view Ctrl-l,
v Enter select (extend) downwards
. Go to last modification in Right
mode
current file k, up Scroll the view q, Close current window
g Enter goto mode upwards Ctrl-q
m Enter match mode Shell
Ctrl-f, Move page down o, Only keep the current
: Enter command mode | Pipe each selection PageDown Ctrl-o window, closing all the
z Enter view mode through shell command, Ctrl-b, Move page up others
replacing with output PageUp
Z Enter sticky view mode
Alt- Pipe each selection into Prompt
Ctrl-w Enter window mode Ctrl-d Move half page
| shell command, ignoring down Escape, Ctrl- Close prompt
Space Enter space mode
output c
Ctrl-u Move half page up
Alt-b, Alt-Left Backward a
word
Ctrl-b, Left Backward a
char
Alt-f, Alt- Forward a word
Right
cheatography.com/hiddenmonkey/
Helix Keyboard Shortcuts
by HiddenMonkey via cheatography.com/85163/cs/31224/
Prompt (cont) Insert Mode (cont) Selection manipulation Selection manipulation (cont)
Ctrl-f, Right Forward a char Ctrl-w, Alt-Ba‐ Delete s Select all regex matches % Select entire file
Ctrl-e, End Move prompt end ckspace previous word inside selections x Select current line, if
Ctrl-a, Move prompt start Alt-d Delete next S Split selection into subsel‐ already selected, extend
Home word ections on regex matches to next line
Ctrl-w Delete previous Alt-b, Alt-Left Backward a Alt- Split selection on newlines X Extend selection to line
word word s bounds (line-wise
Ctrl-b, Left Backward a & Align selection in columns selection)
Alt-d Delete next word
char _ Trim whitespace from the J Join lines inside
Ctrl-u Delete to start of
Alt-f, Alt-Right Forward a selection selection
line
word ; Collapse selection onto a K Keep selections
Ctrl-k Delete to end of
Ctrl-f, Right Forward a char single cursor matching the regex
line
Ctrl-e, End Move to line Alt- Flip selection cursor and Alt-K Remove selections
backspace, Delete previous
end ; anchor matching the regex
Ctrl-h char
Ctrl-a, Home Move to line Alt- Ensures the selection is in Ctrl- Comment/uncomment
delete, Delete next char
start : forward direction c the selections
Ctrl-d
Ctrl-u Delete to start , Keep only the primary Alt-k, Expand selection to
Ctrl-s Insert a word
of line selection Alt- parent syntax node (TS)
under doc cursor,
up
may be changed Ctrl-k Delete to end Alt- Remove the primary
to Ctrl-r Ctrl-w of line , selection Alt-j, Shrink syntax tree
later Alt- object selection (TS)
Ctrl-j, Enter Insert new line C Copy selection onto the
down
Ctrl-p, Up Select previous Backspace, Delete next line (Add cursor
history below) Alt-h, Select previous sibling
Ctrl-h previous char
Alt- node in syntax tree (TS)
Ctrl-n, Select next history Delete, Ctrl-d Delete Alt- Copy selection onto the
left
Down previous char C previous line (Add cursor
above) Alt-l, Select next sibling node
Tab Select next Ctrl-p, Up Move to
Alt- in syntax tree (TS)
completion item previous line ( Rotate main selection
right
BackTab Select previous backward
Ctrl-n, Down Move to next
completion item line ) Rotate main selection
Enter Open selected forward
PageUp Move one
page up Alt- Rotate selection contents
Insert Mode ( backward
PageDown Move one
Escape Switch to normal page down Alt- Rotate selection contents
mode ) forward
Alt-> Go to end of
Ctrl-x Autocomplete buffer
Ctrl-r Insert a register Alt-< Go to start of
content buffer
cheatography.com/hiddenmonkey/