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

前端 未结 7 1459
迷失自我
迷失自我 2020-12-14 07:43

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

I^[A

So I saved it into my .vimrc

7条回答
  •  不思量自难忘°
    2020-12-14 08:13

    I'm answering what I do to add Escape in macro.

    Using in vim editor

    :let @a='iabcjj'
    

    here I map to jj by

    .vimrc file

    imap jj  
    

提交回复
热议问题