Alacritty cheat sheet

69 shortcuts in 11 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Essentials I

6 shortcuts
  • ⌘C
    Copy the selection
  • ⌘V
    Paste
  • ⌘F
    Search forward
  • ⌘B
    Search backward
  • ⌘K
    Clear the screen and scrollback
  • ⌘^F
    Toggle fullscreen

Essentials II

7 shortcuts
  • ⌘=
    Increase the font size
  • ⌘-
    Decrease the font size
  • ⌘0
    Reset the font size
  • ⇧PAGEUP
    Scroll up a page
  • ⇧PAGEDOWN
    Scroll down a page
  • ⇧HOME
    Scroll to the top
  • ⇧END
    Scroll to the bottom

Vi Mode Basics

7 shortcuts
  • ^⇧SPACE
    Toggle vi mode
  • I
    Leave vi mode
  • H
    Move left
  • J
    Move down
  • K
    Move up
  • L
    Move right
  • ESC
    Clear the selection

Vi Line and Screen Motions

7 shortcuts
  • 0
    Go to the start of the line
  • ⇧$
    Go to the end of the line
  • ⇧^
    Go to the first non-blank character
  • ⇧H
    Go to the top of the screen
  • ⇧M
    Go to the middle of the screen
  • ⇧L
    Go to the bottom of the screen
  • Z
    Center the view on the cursor

Vi Word Motions

7 shortcuts
  • W
    Next word
  • B
    Previous word
  • E
    End of the word
  • ⇧W
    Next WORD (whitespace-separated)
  • ⇧B
    Previous WORD (whitespace-separated)
  • ⇧E
    End of the WORD (whitespace-separated)
  • ⇧%
    Jump to the matching bracket

Vi Scrolling

6 shortcuts
  • ^Y
    Scroll up a line
  • ^E
    Scroll down a line
  • ^U
    Scroll up half a page
  • ^D
    Scroll down half a page
  • ^B
    Scroll up a page in vi mode
  • ^F
    Scroll down a page in vi mode

Vi Jumps

4 shortcuts
  • G
    Jump to the top of the scrollback
  • ⇧G
    Jump to the bottom of the scrollback
  • ⇧{
    Go up a paragraph
  • ⇧}
    Go down a paragraph

Vi Selection and Copy

7 shortcuts
  • V
    Start a selection
  • ⇧V
    Start a line selection
  • ^V
    Start a block selection
  • ⌥V
    Start a semantic selection
  • Y
    Copy the selection in vi mode
  • ⇧Y
    Copy to the end of the line
  • ↵
    Open the URL under the cursor

Vi Search

6 shortcuts
  • /
    Search forward in vi mode
  • ⇧?
    Search backward in vi mode
  • N
    Go to the next match
  • ⇧N
    Go to the previous match
  • ⇧*
    Search forward for the word under the cursor
  • ⇧#
    Search backward for the word under the cursor

Vi Inline Search

6 shortcuts
  • F
    Jump to a character on the line
  • ⇧F
    Jump back to a character on the line
  • T
    Jump to just before a character
  • ⇧T
    Jump back to just after a character
  • ;
    Repeat the inline search
  • ,
    Repeat the inline search backward

Search Mode

6 shortcuts
  • ESC
    Cancel the search
  • ^U
    Clear the search
  • ^W
    Delete a word in the search
  • ^P
    Previous search in history
  • ^N
    Next search in history
  • ↵
    Jump to the match from the search bar
Achievement unlocked