This thread explained saving a vim macro to a file but I cannot get it to work. I have the following macro stored in register b that I am trying to save to my rst.vim file:
let @b = '<Esc>bea**<Esc>`<i**<Esc>gvoo<Esc>e'
Everything inside of '...' came from pasting the macro from the buffer using "bp
. But when I close and reopen a rst file containing only the sentence The quick brown fox jumped over the moon
and type fbv2e@b
, this is the resulting sentence:
Thc>bea**<Esc>`<i**<Esc>gvoo<Esc>e quick brown fox jumped over the moon.
So, there must be some escape keystrokes I am missing, but I can't find what they are. I tried searching google and :help
for similar macro examples with no avail. What am I missing and what terms should I be looking for when searching? Thanks!