Saving vim macros

前端 未结 6 1399
既然无缘
既然无缘 2020-11-29 15:07

Does anyone know how to properly save/reuse macros recorded inside of a vim editor?

6条回答
  •  萌比男神i
    2020-11-29 15:40

    You can do like this on your ~/.vimrc

    :let @a="iHello World!\bye\"
    

    NOTE: You must use double quotes to be able to use special keys like in \.

提交回复
热议问题