vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
replace.keys
(465B)
1 t{r<Enter> /* replace space with new line */
2 /---<Enter>
3 3r= /* replace --- with === */
4 n /* advance to next match */
5 . /* repeat */
6 r<Escape> /* cancel, should not alter text */
7 n /* advance to next match */
8 v2e /* select something in visual mode */
9 r<Escape> /* cancel, should not alter text */
10 r= /* replace selection */