Clear certain criteria from .viminfo file

前端 未结 5 582
深忆病人
深忆病人 2021-01-31 08:25

How can I clear certain criteria from my .viminfo file?

I want to clear the command line history, file marks, jumplist, etc.

However,

5条回答
  •  不思量自难忘°
    2021-01-31 09:17

    Open the .viminfo file.

    The following command will remove all lines that are neither blank, comment nor search history:

    :v/^\([#/?]\|$\)/d
    

    @Rich's answer will help you prevent these lines being repopulated.

提交回复
热议问题