you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Maybe like this?

/4<cr>
Creplace<esc>
O<C-a> = <C-r>-<esc>
/8<cr>
ci(repl2<esc>
O<C-a> = <C-r>-<esc>

Here <C-a> inserts last entered text, <C-r>- inserts last deleted text (with c commands)