From 2244a5d40c83d477839f91cb6d6a4aeb02446a97 Mon Sep 17 00:00:00 2001 From: omentic Date: Wed, 1 May 2024 23:29:52 +0000 Subject: deploy: 12eec890240a05d1e090114f7f4fdd7c1ee8ff88 --- keymap.html | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'keymap.html') diff --git a/keymap.html b/keymap.html index 06467f67..828eeb94 100644 --- a/keymap.html +++ b/keymap.html @@ -199,6 +199,7 @@
💡 Mappings marked (TS) require a tree-sitter grammar for the file type.
Normal mode is the default mode when you launch helix. Return to it from other modes by typing Escape
.
Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the Escape
key.
NOTE: Unlike Vim,
@@ -240,13 +241,13 @@f
,F
,t
andT
are not confined to the current line.T
Find 'till previous char till_prev_char
F
Find previous char find_prev_char
- G
Go to line number <n>
goto_line
+ Alt-.
Repeat last motion ( f
,t
orm
)repeat_last_motion
Alt-.
Repeat last motion ( f
,t
,m
,[
or]
)repeat_last_motion
Home
Move to the start of the line goto_line_start
End
Move to the end of the line goto_line_end
Ctrl-b
,PageUp
Move page up page_up
- Ctrl-f
,PageDown
Move page down page_down
- Ctrl-u
Move half page up half_page_up
+ Ctrl-d
Move half page down half_page_down
+ Ctrl-u
Move cursor and page half page up page_cursor_half_up
Ctrl-d
Move cursor and page half page down page_cursor_half_down
Ctrl-i
Jump forward on the jumplist jump_forward
Ctrl-o
Jump backward on the jumplist jump_backward
@@ -274,7 +275,7 @@ Ctrl-s
Save the current selection to the jumplist save_selection
y
Yank selection yank
p
Paste after selection paste_after
- P
Paste before selection paste_before
+ "
<reg>
Select a register to yank to or paste from select_register
"
<reg>
Select a register to yank to or paste from select_register
>
Indent selection indent
<
Unindent selection unindent
@@ -333,7 +334,7 @@ =
Format selection (currently nonfunctional/disabled) (LSP) format_selections
Search
-Search commands all operate on the
+/
register by default. To use a different register, use"<char>
.Search commands all operate on the
/
register by default. To use a different register, use"<char>
.
Key Description Command /
Search for regex pattern search
@@ -360,7 +361,7 @@ ?
Search for previous pattern rsearch
View mode
Accessed by typing
z
in normal mode.View mode is intended for scrolling and manipulating the view without changing -the selection. The "sticky" variant of this mode (accessed by typing
Z
in +the selection. The "sticky" variant of this mode (accessed by typingZ
in normal mode) is persistent and can be exited using the escape key. This is useful when you're simply looking over text and not actively editing it.
@@ -372,8 +373,8 @@ useful when you're simply looking over text and not actively editing it. Key Description Command k
,up
Scroll the view upwards scroll_up
Ctrl-f
,PageDown
Move page down page_down
- Ctrl-b
,PageUp
Move page up page_up
- Ctrl-d
Move half page down half_page_down
+ Ctrl-u
Move half page up half_page_up
+ Ctrl-u
Move cursor and page half page up page_cursor_half_up
Ctrl-d
Move cursor and page half page down page_cursor_half_down
Goto mode
@@ -382,7 +383,7 @@ useful when you're simply looking over text and not actively editing it.
Key Description Command g
Go to line number <n>
else start of filegoto_file_start
- e
Go to the end of the file goto_last_line
+ f
Go to files in the selection goto_file
f
Go to files in the selections goto_file
h
Go to the start of the line goto_line_start
l
Go to the end of the line goto_line_end
@@ -400,6 +401,7 @@ useful when you're simply looking over text and not actively editing it. s
Go to first non-whitespace character of the line goto_first_nonwhitespace
.
Go to last modification in current file goto_last_modification
j
Move down textual (instead of visual) line move_line_down
+ k
Move up textual (instead of visual) line move_line_up
w
Show labels at each word and select the word that belongs to the entered labels goto_word
Match mode
@@ -423,8 +425,8 @@ useful when you're simply looking over text and not actively editing it.w
,Ctrl-w
Switch to next window rotate_view
v
,Ctrl-v
Vertical right split vsplit
- s
,Ctrl-s
Horizontal bottom split hsplit
- f
Go to files in the selection in horizontal splits goto_file
+ F
Go to files in the selection in vertical splits goto_file
+ f
Go to files in the selections in horizontal splits goto_file
F
Go to files in the selections in vertical splits goto_file
h
,Ctrl-h
,Left
Move to left split jump_view_left
j
,Ctrl-j
,Down
Move to split below jump_view_down
@@ -456,6 +458,9 @@ useful when you're simply looking over text and not actively editing it. k
,Ctrl-k
,Up
Move to split above jump_view_up
h
Select symbol references (LSP) select_references_to_symbol_under_cursor
'
Open last fuzzy picker last_picker
+ w
Enter window mode N/A + c
Comment/uncomment selections toggle_comments
+ C
Block comment/uncomment selections toggle_block_comments
Alt-c
Line comment/uncomment selections toggle_line_comments
p
Paste system clipboard after selections paste_clipboard_after
P
Paste system clipboard before selections paste_clipboard_before
@@ -543,14 +548,14 @@ with modal editors. y
Yank selections to clipboard yank_to_clipboard
As you become more comfortable with modal editing, you may want to disable some insert mode bindings. You can do this by editing your
config.toml
file.[keys.insert] -up = "no_op" -down = "no_op" -left = "no_op" -right = "no_op" -pageup = "no_op" -pagedown = "no_op" -home = "no_op" -end = "no_op" +up = "no_op" +down = "no_op" +left = "no_op" +right = "no_op" +pageup = "no_op" +pagedown = "no_op" +home = "no_op" +end = "no_op"
Select / extend mode
Accessed by typing
-- cgit v1.2.3-70-g09d2v
in normal mode.