How can I clear certain criteria from my .viminfo file?
I want to clear the command line history, file marks, jumplist, etc.
However,
You can use vim
itself to modify the file, and your changes will stay put if you invoke it like this:
$ vim -i NONE ~/.viminfo
Starting vim
with the -i
option sets which viminfo
file to use for that session. The special value NONE
means that nothing is saved at all. This can be handy for editing other auto-generating files or sensitive data.
From man vim
:
-i {viminfo}
When using the viminfo file is enabled, this option sets the filename
to use, instead of the default~/.viminfo
. This can also be used to
skip the use of the viminfo file, by giving the nameNONE
.