-
Notifications
You must be signed in to change notification settings - Fork 0
Helix
Kenichi Kamiya edited this page Aug 24, 2024
·
20 revisions
You should remember different keybindings and commands from vim
- https://docs.helix-editor.com/keymap.html
- https://github.com/helix-editor/helix/wiki/FAQ#change-cursor-shape-on-mode-change-bar-cursor-on-insert-mode-block-on-normal-mode-etc
-
i
,a
# Insert mode before/after.I
andA
are the line versions -
/
# Search mode.n
andN
focus to next and prev match -
v
# Select mode -
x
# Select current line.xx
and2x
means same. -
s
# After selected,s
matches multiple as find -
w
,e
,b
# Select and move around current words -
g d
# Goto Definition. Usable since enabling LSP -
y
,p
# Copy(Yank) and Paste.Space y
Space p
will copy to clipboard -
u
# undo, andU
means redo vice versa -
d
# Cut(Not only for Delete, override yanked) current selection.c
will be insert mode after deletion -
Ctrl+w
# Window mode,v
- vsplit,s
- hsplit,q
- close the window # Not "pane" -
Ctrl+c
# Comment-in/out toggle -
C
# Multiple cursors. Make 1 cursor again with,
-
3x Alt-s &
# Align table in the selected 3 lines (& is the align, but require Alt-s for multi cursors)
-
Space + f
- fzf like filename picker -
Space + /
- ripgrep like global search
https://github.com/kachick/dotfiles/commit/c7121ac6526d0a3e7d637fad2628aa3cc98cb91a