I really don't care about any of the "value" that viminfo or its replacement in neovim, ShaDa, provide. I couldn't care less about whether or not my cursor is in the exact place I left it when I open a file or whether my registers are restored, but I am very tired of seeing seemingly random ShaDa-related errors. Is there a way that I can just turn off shared data? :help shada has not been very helpful in this endeavor.

up vote 6 down vote accepted

set shada="NONE" will prevent shada files from being generated or read in Neovim.

For vim, set viminfo="NONE" will disable viminfo files.

According to the neovim docs, if you invoke neovim with -i NONE, it will ignore the ShaDa file.

Insert the following into your bashrc:

alias nvim='nvim -i NONE'

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.