title: Vim won't load plugin?
body: <p>So I installed <a href="https://github.com/ycm-core/YouCompleteMe" rel="nofollow noreferrer">youcompleteme</a> for vim and when running vim as sudo, everything works as expected. I get autocomplete as well as syntax-highlighting.</p>
  <p>However when running vim as normal user, YCM does not appear to be working.
  I do get syntax-highlighting but I suspect that being due to <code>:syntax on</code> in my <code>~/.vimrc</code>. I do not get the autocomplete I got from YCM when starting as sudo.</p>
  <p>This is my <code>~/.vimrc</code>:</p>
  <pre><code>set tabstop=4
  let g:ycm_global_ycm_extra_conf = '~/Documents/code'
  let g:ycm_confirm_extra_conf = 0
  :syntax on
  :set nu
  :filetype on
  </code></pre>
  <p>Before you ask, the <code>.ycm_extra_conf.py</code> is in fact in the specified folder.</p>
  <p>Also here is the output of <code>uname -a</code>:
  <code>Linux PC 5.14.11-arch1-1 #1 SMP PREEMPT Sun, 10 Oct 2021 00:48:26 +0000 x86_64 GNU/Linux</code></p>
  <p>How can I get YCM's functionality as non-privileged user?</p>