pub fn encode_macro(inputs: &[Input]) -> String
Serialize a captured macro into vim’s keystroke notation (<Esc>, <C-d>, <lt>, etc.) so it can live as plain text in a register slot. Used when q{reg} finishes recording.
<Esc>
<C-d>
<lt>
q{reg}