yank forward

y f SPC does not yank the space character with evil-snipe-override-mode. See https://github.com/hlissner/evil-snipe/issues/86.

(remove-hook 'doom-first-input-hook #'evil-snipe-override-mode)

Commands

Repeat last change: . Repeat last substitute: & Comment lines: g c N j (comment or uncomment N lines below, defined by motion N j) Add comment at end of line with space: M-; (press a afterwards to start writing)

Text Objects

See Text Objects.

Ex-commands

Close buffer: :bd (or use C-w d)

Key Bindings

Quick jump in current line:

  • In motion state, type s and the two characters to search for (S searches backwards, and type s repeatedly to jump to next match in visible buffer)
  • In operator state (i.e. waiting state after typing y, d, etc.): z and Z

EasyMotion:

  • g s s and two characters: highlight all occurrences of the two letters as jump locations.
  • g s / or g s SPC and any characters combo quickly: when the idle timer expires a list of jump locations matching the combo are shown.
  • g s a / g s A: jump forward or backward in the same lexical scope (e.g. block).
  • g s * or g s #: search for the word under cursor, forward or backward.

Embrace:

  • S in visual state, e.g. S {: make selection a new {} block.
  • y s i s {: quote sentence with {, i w is a Text Objects. Use } to not insert spaces surrounding the text object.
  • d s ": remove " quotes.
  • c s " ': change " quoted string to '. As a special case, tag <q> can be typed as a replacement.