5

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.

8

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

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

1

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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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