-
Notifications
You must be signed in to change notification settings - Fork 0
Helix
Kenichi Kamiya edited this page Apr 12, 2025
·
25 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.IandAare the line versions -
/# Search mode.nandNfocus to next and prev match -
v# Select mode -
x# Select current line.xxand2xmeans same. -
s# After selected,smatches 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 ySpace pwill copy to clipboard -
u# undo, andUmeans redo vice versa -
d# Cut(Not only for Delete, override yanked) current selection.cwill 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(Shift+c)# Multiple cursors. Make 1 cursor again with,. Use this feature if you want矩形選択 -
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
g is the prefix and displays helper window.
- gNg # go to the Nth line
- gg # Start of file # Same as g1g
- ge # end of file
- gh # head of line
- gl # end of line
Home/End key works like gh and gl, it is better because of working in both NORMAL and INSERT mode.
https://github.com/kachick/dotfiles/commit/c7121ac6526d0a3e7d637fad2628aa3cc98cb91a