How to clear vim registers effectively?

前端 未结 7 1266
傲寒
傲寒 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:51

    Remove .viminfo file or delete the register line in the .viminfo file.

    You can get the details from Here:

    The viminfo file is used to store:
    - The command line history.
    - The search string history.
    - The input-line history.
    - Contents of non-empty registers.
    - Marks for several files.
    - File marks, pointing to locations in files.
    - Last search/substitute pattern (for 'n' and '&').
    - The buffer list.
    - Global variables
    

提交回复
热议问题