DEV Community

Discussion on: What's The Vim Runtime? A Guide With Examples

Collapse
abhinav1217 profile image
Abhinav Kulshreshtha

I am trying to move from vim to neovim. I have a strange problem.

I have in my .bashrc exported $VIMINIT to .config so that vim files like .viminfo are not polluting my home folder. But neovim also seems to give priority to $VIMINIT over its own config folder.

I don't want to remove my well tested vim setup without getting comfortable with neovim first. What is a safe and appropriate way to separate neovim and vim? I want to have .config/vim and .config/neovim as config location for settings and generated junks respectively and not have any related dotfiles in home folder