How can I clear certain criteria from my .viminfo file?
I want to clear the command line history, file marks, jumplist, etc.
However,
VIM seems not having a built-in command for this job. But you can do it in a shell with "grep". For example, the following command will clear the Command Line History,File marks, Jumplist:
bash $ grep -v "^[:'-]" .viminfo > .viminfo_clear
bash $ cp .viminfo_clear .viminfo
If you open the .viminfo, you will find that the command line history is started with ":", the file mark is started with "'", and the jumplist is started with "-".