2

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.

Matt
  • 20,685
  • 1
  • 11
  • 24
CATboardBETA
  • 151
  • 7
  • @BLayer neither of those exist either. – CATboardBETA Mar 03 '21 at 20:57
  • Okay...I give up. LOL. Welcome to Vi&Vim SE, BTW! – B Layer Mar 03 '21 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 03 '21 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. – CATboardBETA Mar 03 '21 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 03 '21 at 21:04
  • If you haven't created it then it doesn't exist (yet). BTW. Setting up plugins while you're still learning basic stuff is particularly bad idea. – Matt Mar 03 '21 at 21:06
  • Agree with Matt. I mentioned that you need to create your personal vimrc yourself. :version shows the order that system and personal (or "user") vimrcs are searched in. – B Layer Mar 03 '21 at 21:06
  • Welcome to [vi.se]! Strongly related: 1, 2. In particular, it sounds like you should read :help startup, :help vimrc-intro, and that you likely need to create the right directories/files. – D. Ben Knoble Mar 03 '21 at 21:10
  • Okay, that was quite a flurry of activity. :) Do you think you have everything you need now? – B Layer Mar 03 '21 at 21:20
  • @BLayer not quite. I have it installed, and vim says it has loaded with :scriptnames, but it does not actually work. – CATboardBETA Mar 03 '21 at 21:44
  • You mean vimrc (not deoplete)? In that case please update your question with details i.e. where you put the file, its name, what you put in it, what you checked for...anything you think might be a pertinent detail. – B Layer Mar 03 '21 at 22:21
  • But start by reading those help sections from DBK if you haven't already! Could be the answer is in there. – B Layer Mar 03 '21 at 22:35

1 Answers1

2

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.

Matt
  • 20,685
  • 1
  • 11
  • 24