I'm trying to write a plugin that repeats a sequence (which happens to be a macro). But there seems to be an issue with sequences that contain a literal ^[ escape.
For example, if I want to repeat the sequence eab\<esc>, the following works correctly for the first. invocation:
call repeat#set("eab\<esc>")
But if I invoke . again, it now acts as ab\<esc>.
In all cases, echo g:repeat_sequence returns eab^[.
I'm trying to write a plugin that repeats a sequence (which happens to be a macro). But there seems to be an issue with sequences that contain a literal
^[
escape.For example, if I want to repeat the sequence
eab\<esc>
, the following works correctly for the first.
invocation:But if I invoke
.
again, it now acts asab\<esc>
.In all cases,
echo g:repeat_sequence
returnseab^[
.Thanks for your help.