Saving vim macros

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

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

6条回答
  •  庸人自扰
    2020-11-29 15:29

    Vim 8.0 on MacOS Mojave (10.14.6) actually persists macros and named buffers automatically (by default, although I haven't looked for a way of turning this behavior off). Closing a Vim session will update the ~/.viminfo file with any named buffers / macros.

提交回复
热议问题