Can't find init.vim

Bigbadboybob picture Bigbadboybob · Dec 31, 2016 · Viewed 40.7k times · Source

I can't seem to find my init.vim. I beleive it is supposed to be under ~/Neovim/share/nvim but the only folder there is runtime. Do I have to make a file called init.vim? If so, where do I put it?

--edit--

If anyone is still reading this, I have not fixed the problem. If have found where init.vim should be but it is not there and when I try to create the file I cannot write it when I save. Even when I do it as administrator, I cannot write the file.

Answer

kokito picture kokito · Jan 1, 2017

the config file for neovim is at ~/.config/nvim/init.vim. or if set $XDG_CONFIG_HOME/nvim/init.vim. you can get more info with :help nvim-configuration from your neovim instance.