3

I'm running Arch and I'm trying to use Vundle to install plugins.

Here's my ~/.vimrc

filetype off
set nocompatible

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'    

Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'Valloric/YouCompleteMe'
Plugin 'bling/vim-airline'
Plugin 'pangloss/vim-javascript'

call vundle#end()

filetype plugin indent  on      " Treba nam da Vim prepoznaje filetype
syntax on                       " Uključujemo syntax highlighting

set tabstop=4                   " Broj razmaka koji tab stavlja
set shiftwidth=4                " Razmaci za autoindent
set autoindent                  " Auto indent!

set expandtab                   " Stavlja razmake umjesto taba
set smarttab                    " Dodatna carolija

set number                      " Line numbers!

set showmatch                   " Kada je zagrada umetnuta, na sekundu
                                " skoči do njenog para.

set ruler                       " Pokazuje Line/column brojeve

set background=dark             " Lepo tamno bre

Now when I run vim +PluginInstall +qall it only seems to install VundleVim/Vundle.vim. But when I :so ~/.vimrc and reinstall it does it correctly, but the plugins never show up.

:set rtp also displays all the paths to ~/.vim/bundle but they still don't show up. I've tried reinstalling vim, but to no avail. What should I do?

Edit #1: Updated ~/.vimrc to include VundleVim/Vundle.vim.

Mori no Ando
  • 192
  • 4
  • 13

3 Answers3

2

According to the Vundle README, before any other plugins, you have to let Vundle manage itself:

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Hatchet
  • 5,320
  • 1
  • 30
  • 42
  • 2
    Then run `:VundleInstall` – Hatchet Jan 09 '16 at 18:22
  • Not working. I tried running vim both normally and as root, sourced to `~/.vimrc` both times, ran `:VundleInstall`, `:PluginInstall` and `:PluginInstall!`, but it's still not working. Every time it installs only VundleVim/Vundle.vim. – Mori no Ando Jan 09 '16 at 18:28
  • You installed Vundle with something akin to `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`, correct? – Hatchet Jan 09 '16 at 19:07
  • Yes I did. Tried completely reinstalling Vim, no luck. – Mori no Ando Jan 09 '16 at 19:35
  • What does running `:VundleInstall` tell you? – Hatchet Jan 09 '16 at 19:43
  • `" Installing plugins to /home/tefached/.vim/bundle Plugin 'VundleVim/Vundle.vim'` And that's it. It **is** successful, however. – Mori no Ando Jan 09 '16 at 19:46
  • And you still can't run `:NERDTree`, for example? Your `~/.vim/bundle/` folder is still empty aside from a `Vundle.vim` folder? – Hatchet Jan 09 '16 at 19:51
  • I got it working somehow, after a third reinstall it seems to be functioning now. Thank you for your help. – Mori no Ando Jan 09 '16 at 20:07
  • 2
    For anyone else who comes across, delete the `.vim` directory. If deleting from the command line, delete with `$ rm -Rf ~/.vim` or wherever that `.vim` folder is, then follow the instructions from `https://github.com/VundleVim/Vundle.vim` From step 2-4, assuming you already have git installed, and the default directory being the one mentioned in step 1 –  Oct 20 '16 at 05:47
  • Deleting .vim and cloning the git project worked for me – CoderMan Nov 19 '19 at 01:02
1

Typing :VundleInstall worked for me. I spent a long time doing :PluginInstall, but I think once you have Vundle installed (you can check by typing :PluginList), you can do :VundleInstall

Ka Mok
  • 1,937
  • 3
  • 22
  • 47
  • This worked for me in the sense that it exposed that VIM having problems with the github.com connections. – codenoob Jan 20 '19 at 20:18
0

I have the error E117 when I exec PluginInstall,because 'set rtp' is not work, the solution is move the runtime! debian.vimcommond to the top of the .vimrc

Mr.Wang
  • 151
  • 2
  • 6