Key bindings: Local, query-replace
query-replace(M-%)query-replace-regexp(C-M-%)
| Key | Description | Note |
|---|---|---|
y |
replace and advance | |
, |
replace and stay | |
! |
replace remaining in buffer or region | multi-buffer |
Y |
replace remaining across buffers | multi-buffer |
n |
skip | |
N |
skip to next buffer | multi-buffer |
C-l |
re-center | |
u |
undo | |
U |
undo all | |
C-r |
recursive edit: pause | C-M-c to resume |
C-w |
recursive edit: delete match and pause | C-M-c to resume |
e |
edit replacement string, replace, and continue | |
q |
exit | also RET like in isearch |
Re-centering with C-l works as well.
- Query string
- history: previous query-replacement pairs
- future history:
- the word at point, if any
- the last successful
isearchstring - previous query and replacement strings
- Replacement string
- history:
- the query string
- previous query and replacement strings
- future history:
- the query string
- history:
(Search history with C-r and C-s, and navigate it with M-p and M-n.)