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

前端 未结 7 1461
迷失自我
迷失自我 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:33

    If you're using Windows behavior for vim where Ctrl+V is the Paste command, the equivalent sequence is Ctrl+Q

提交回复
热议问题