You are not logged in.

#1 2018-04-18 22:28:10

Narcher023
Member
Registered: 2018-04-13
Posts: 7

Vundle is Throwing an Error When I try to Install Lightline [SOLVED]

I have installed vundle and am trying to install new plugins for vim.  I decided to install "lightline" but receive the following errors when I have lightline listed in .vimrc.

Error detected while processing function vundle#installer#list:
line    1:
E121: Undefined variable: g:vundle#bundles
E116: Invalid arguments for function copy(g:vundle#bundles), 'v:val.name_spec'))
E116: Invalid arguments for function map(copy(g:vundle#bundles), 'v:val.name_spec'))
E116: Invalid arguments for function vundle#scripts#bundle_names(map(copy(g:vundle#bundles), 'v:val.name_s
pec'))
E15: Invalid expression: vundle#scripts#bundle_names(map(copy(g:vundle#bundles), 'v:val.name_spec'))

It doesn't do this when I restart with only the vundle plugin installed though.  Here is a copy of my .vimrc.

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

Plugin 'VundleVim/Vundle.vim'
Plugin 'itchyny/lightline.vim'

call vundle#end()
filetype plugin indent on

What am I doing wrong?

Last edited by Narcher023 (2018-04-19 02:20:25)

Offline

#2 2018-04-19 01:25:39

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: Vundle is Throwing an Error When I try to Install Lightline [SOLVED]

Plugin managers for vim have not been relevant since version 8.0, when vim introduced native plugin management.  See :h packages for a quick how-to.  If you want a fish, here:

git clone https://github.com/itchyny/lightline.vim ~/.vim/pack/lightline/opt/lightline
echo 'packadd lightline' > ~/.vimrc
echo 'set laststatus=2'  > ~/.vimrc

I have tested and confirmed the above indeed produces a colorful status line.

Offline

#3 2018-04-19 02:19:18

Narcher023
Member
Registered: 2018-04-13
Posts: 7

Re: Vundle is Throwing an Error When I try to Install Lightline [SOLVED]

Thanks, that worked.

Offline

Board footer

Powered by FluxBB