yank forward
y f SPC doesn’t 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
sand the two characters to search for (Ssearches backwards, and typesrepeatedly to jump to next match in visible buffer) - In operator state, that is, waiting state after typing
y,d, etc.:zandZ
EasyMotion:
g s sand two characters: highlight all occurrences of the two letters as jump locations.g s /org s SPCand 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, such as a block.g s *org s #: search for the word under cursor, forward or backward.
Embrace:
Sin visual state. For example,S {: make selection a new{}block.y s i s {: quote sentence with{,i wis 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.