Contents
How do I get rid of Viminfo?
2. Manually
- Open the .viminfo file in vim,
- :set viminfo= to turn off the auto-saving of info to the .viminfo file.
- Remove everything you don’t want (perhaps by using Johnsyweb’s answer, or just by deleting the lines with manual edit commands), save the file, and quit vim,
What is Viminfo?
The vimrc is the file you edit to change vim’s behavior. It is a the configuration file. The viminfo is like a cache, to store cut buffers persistently, and other things. From the docs ( :help viminfo ): The viminfo file is used to store: – The command line history.
Where is Viminfo?
The default name of the viminfo file is “$HOME/. viminfo” for Unix and OS/2, “s:.
Where is the Viminfo file?
How do I delete the.viminfo file in Vim?
Manually Open the .viminfo file in vim, :set viminfo= to turn off the auto-saving of info to the .viminfo file. Remove everything you don’t want (perhaps by using Johnsyweb’s answer, or just by deleting the lines with manual edit commands), save the file, and quit vim,
What are the.viminfo and.netrwhist files?
The viminfo file can be used to remember that information, which enables you to continue where you left off. The file “.netrwhist” holds history when netrw (and vim) is not active. Thanks for contributing an answer to Vi and Vim Stack Exchange!
What does none mean in.viminfo file stack?
The special value NONE means that nothing is saved at all. This can be handy for editing other auto-generating files or sensitive data. to use, instead of the default ~/.viminfo.
Can you use Vim to modify a file?
You can use vim itself to modify the file, and your changes will stay put if you invoke it like this: 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.