Editors¶
nano¶
- Ctrl+O: Save file
- Ctrl+X: Exit editor
- Ctrl+W: Search for text
- Ctrl+U: Undo last action
- Ctrl+K: Cut current line
- Ctrl+U: Paste cut line above the current line
micro¶
- Ctrl+S: Save file
- Ctrl+Q: Quit editor
- Ctrl+F: Find text
- Ctrl+Z: Undo last action
- Ctrl+E: Open command prompt
save: Save filequit: Quit editorfind: Find textset filetype <filetype>: Set syntax highlighting based on file typeset tabsize <number>: Set the number of spaces for a tab
vim¶
- D D: Delete current line
- P: Paste the deleted line above the current line
- I: Enter insert mode to edit text
- : W: Save file
- : Q: Quit editor
helix¶
The Most Underrated IDE
Normal mode¶
- Undo:
u - Redo:
U - Move cursor forward:
w - Move cursor backward:
b - Delete highlighted text:
d - Find next char:
f - Find previous char:
F - Go to end of line:
gl - Go to beginning of line:
gh - Show all keybindings: Space ++?++
- Search for a specific keybinding: type
%bindings <binding>
- Search for a specific keybinding: type
- File picker: Space
f- Open file in vertical split: Ctrl+V
- Open file in horizontal split: Ctrl+H
- Move to left split: Ctrl+W Left
- Close current split: Ctrl+W Q
- Symbol picker: Space
s - Project-wide symbol picker: Space
S - Diagnostic picker: Space
d - Comment line: Ctrl+C
- Highlight current line and move to next line:
x - Replace highlighted text (LSP rename): Space
r - Go to definition:
gd`- Go out of definition: Ctrl+O
- Go into definition: Ctrl+I
- Go to references:
gr - Jump to a two-character label:
gw - Expand selection to the next node in the syntax tree: Option+Up
- Shrink selection to the previous node in the syntax tree: Option+Down
Select mode¶
- Enter select mode:
v - Move cursor forward with appended selection:
w - Move cursor backward with appended selection:
b