Skip to content

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 file
    • quit: Quit editor
    • find: Find text
    • set filetype <filetype>: Set syntax highlighting based on file type
    • set 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

Keymap

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: g l
  • Go to beginning of line: g h
  • Show all keybindings: Space ++?++
    • Search for a specific keybinding: type %bindings <binding>
  • 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: g d`
    • Go out of definition: Ctrl+O
    • Go into definition: Ctrl+I
  • Go to references: g r
  • Jump to a two-character label: g w
  • 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