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

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

    Today I discovered a vim plug-in called MARVIM (http://www.vim.org/scripts/script.php?script_id=2154).

    It is capable of storing macros and executing them later using shortcuts.

提交回复
热议问题