I have seen that the .vim directory is in $XDG_CONFIG_HOME/, but it isn't. The closest I can find is /etc/vim/, but that does not contain what I need (namely, init.vim). Am I missing something?

I am running Vim 8.1, on Ubuntu 20.04.2 x86_64.

  • @BLayer neither of those exist either. Mar 3, 2021 at 20:57
  • Okay...I give up. LOL. Welcome to Vi&Vim SE, BTW!
    – B Layer
    Mar 3, 2021 at 20:58
  • Wait...are you looking for your personal vimrc or system vimrc? System stuff is often in /usr/share/vim*... personal vimrc you create yourself. Also, start vim and do :echo $VIMRUNTIME $MYVIMRC AND :version ... with all that you should have everything you need.
    – B Layer
    Mar 3, 2021 at 21:00
  • @BLayer I don't exactly know. I am trying to set up deoplete, and it just said to edit init.vim in .vim in the installation guide. This is my first time messing with vim. Mar 3, 2021 at 21:03
  • That's probably referring to neovim....but it also works with Vim 8 so you just need to find your vimrc...my last comment should get you there..
    – B Layer
    Mar 3, 2021 at 21:04

1 Answer 1


Vim/Neovim config file/directory must be created manually.

For Neovim the default location is ~/.config/nvim/init.vim, unless you have custom $XDG_CONFIG_HOME set.

For Vim it's either ~/.vimrc or ~/.vim/vimrc.

In any case exact rules are described under :h $MYVIMRC topic of the help system.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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