How can I clear certain criteria from my .viminfo file?
I want to clear the command line history, file marks, jumplist, etc.
However,
Open the .viminfo file.
.viminfo
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.