How to clear vim registers effectively?

前端 未结 7 1257
傲寒
傲寒 2021-01-31 07:07

Registers in vim are a great feature to store text snippets and even to run commands on the text stored within them. However, I\'m a tidy person and tend to clean things up when

7条回答
  •  天涯浪人
    2021-01-31 07:48

    Another option is to never load any registers. As others have said, registers are loaded from .viminfo. The -i flag is used to specify what viminfo file to use. If you specify NONE, no viminfo, and therefore no registers will be loaded.

    vim -i NONE
    

提交回复
热议问题