Cheat Sheet

Terminal ๐Ÿ”—︎

This section summarizes the comprehensive cheat sheet readline.

Moving ๐Ÿ”—︎

  • CTRL-F: Move forward by one character.
  • CTRL-B: Move backward by one character.
  • ALT-F: Move forward by one word.
  • ALT-B: Move backward by one word.
  • CTRL-A: Move to the beginning of the line.
  • CTRL-E: Move to the end of the line.

Editing ๐Ÿ”—︎

  • CTRL-K: Delete all characters after cursor position.
  • CTRL-U: Delete the entire line.
  • CTRL-D: Delete the character on the cursor.
  • CTRL-Y: Paste killed text.
  • ALT-W

Undo ๐Ÿ”—︎

  • CTRL-_: Undo changes.

Spacemacs ๐Ÿ”—︎

For full cheat sheet, visit this webpage

  • { | }: Move by one paragraph.
  • [[ | ]]: Move by one function.
  • g ;: Back to last edit location.
  • g f: Go to file under cursor.

Substitution ๐Ÿ”—︎

  • :s/<old>/<new>/g: Substitute within current line.
  • :%s/<old>/<new>/g: Substitute within buffer.

TODO: Finish remaining pieces ๐Ÿ”—︎