How to save a Vim macro that contains "Escape" key presses?

Posted by Nicolas Raoul on Stack Overflow See other posts from Stack Overflow or by Nicolas Raoul
Published on 2010-05-31T12:38:22Z Indexed on 2010/05/31 12:42 UTC
Read the original article Hit count: 230

Filed under:
|

I use the following Vim macro a lot (it puts the current line inside tags):

I<e>^[A</e>

So I saved it into my .vimrc

let @e='I<e>^[A</e>'

But it does not work.
The ^[ part means Escape but it is not understood as such when using .vimrc

How can I save this macro, or any macro that contains "Escape" ?

© Stack Overflow or respective owner

Related posts about vim

Related posts about macros