Skip to content

E117: Unknown function: vundle#begin #506

Description

@jm18919

I had old vundle installed. Instead of using git pull to update vundle, I removed old vundle from ~/.vim and installed it folowing Quick Start section in the Github page of vundle.
I am currently using Archlinux.

Maybe I broke something when I installed new vundle. I get this:

jack@Jack-PC ~ $ vim .vimrc
Error detected while processing /home/jack/.vimrc:
line    6:
E117: Unknown function: vundle#begin
Error detected while processing function vundle#config#bundle..vundle#config#init_bundle..<SNR>6_rtpath..1:
line    1:
E121: Undefined variable: g:bundle_dir
E116: Invalid arguments for function s:expand_path(g:bundle_dir.'/'.self.name)
E15: Invalid expression: s:expand_path(g:bundle_dir.'/'.self.name)
Error detected while processing function vundle#config#bundle..<SNR>6_rtp_rm_a:
line    1:
E121: Undefined variable: g:bundles
E116: Invalid arguments for function copy(g:bundles), 'v:val.rtpath')
E116: Invalid arguments for function map(copy(g:bundles), 'v:val.rtpath')
E15: Invalid expression: map(copy(g:bundles), 'v:val.rtpath')
line    2:
E121: Undefined variable: paths
E116: Invalid arguments for function join(paths, ',')
E15: Invalid expression: join(paths, ',')
line    3:
E121: Undefined variable: paths
E116: Invalid arguments for function join(paths, '/after,').'/after'
E15: Invalid expression: join(paths, '/after,').'/after'
line    4:
E121: Undefined variable: prepends
E116: Invalid arguments for function fnameescape(prepends)
E15: Invalid expression: 'set rtp-='.fnameescape(prepends)
line    5:
E121: Undefined variable: appends
E116: Invalid arguments for function fnameescape(appends)
E15: Invalid expression: 'set rtp-='.fnameescape(appends)
Error detected while processing function vundle#config#bundle:
line    3:
E121: Undefined variable: g:bundles
E116: Invalid arguments for function add
Error detected while processing function vundle#config#bundle..<SNR>6_rtp_add_a:
line    1:
E121: Undefined variable: g:bundles
E116: Invalid arguments for function copy(g:bundles), 'v:val.rtpath')
E116: Invalid arguments for function map(copy(g:bundles), 'v:val.rtpath')
E15: Invalid expression: map(copy(g:bundles), 'v:val.rtpath')
line    2:
E121: Undefined variable: paths
E116: Invalid arguments for function join(paths, ',')
E15: Invalid expression: join(paths, ',')
line    3:
E121: Undefined variable: paths
E116: Invalid arguments for function join(paths, '/after,').'/after'
E15: Invalid expression: join(paths, '/after,').'/after'
line    4:
E121: Undefined variable: prepends
E116: Invalid arguments for function fnameescape(prepends)
E15: Invalid expression: 'set rtp^='.fnameescape(prepends)
line    5:
E121: Undefined variable: appends
E116: Invalid arguments for function fnameescape(appends)
E15: Invalid expression: 'set rtp+='.fnameescape(appends)
Error detected while processing /home/jack/.vimrc:
line   15:
E117: Unknown function: vundle#end
Press ENTER or type command to continue

I exactally followed the instractions on the Github page.

" .vimrc
set nocompatible
filetype off 

" Vundle 
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
call vundle#end()
filetype plugin indent on

/etc/vimrc only contains one line:

runtime! archlinux.vim    

And the content of archlinux.vim:

" The ArchLinux global vimrc - setting only a few sane defaults
"
" Maintainer:      Thomas Dziedzic [gostrc@gmail.com]
"
" NEVER EDIT THIS FILE, IT'S OVERWRITTEN UPON UPGRADES, GLOBAL CONFIGURATION
" SHALL BE DONE IN /etc/vimrc, USER SPECIFIC CONFIGURATION IN ~/.vimrc

" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible                " Use Vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start  " more powerful backspacing

" Now we set some defaults for the editor
set history=50                  " keep 50 lines of command line history
set ruler                       " show the cursor position all the time

" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg

if has('gui_running')
  " Make shift-insert work like in Xterm
  map <S-Insert> <MiddleMouse>
  map! <S-Insert> <MiddleMouse>
endif

The Dir tree:

.vim
└── bundle
    └── Vundle.vim
        ├── autoload
        │   ├── vundle
        │   │   ├── config.vim
        │   │   ├── installer.vim
        │   │   └── scripts.vim
        │   └── vundle.vim
        ├── changelog.md
        ├── CONTRIBUTING.md
        ├── doc
        │   └── vundle.txt
        ├── LICENSE-MIT.txt
        ├── README.md
        └── test
            ├── files
            │   └── test.erl
            ├── minirc.vim
            └── vimrc

The output of :scriptnames

  1: /etc/vimrc
  2: /usr/share/vim/vimfiles/archlinux.vim
  3: ~/.vimrc
  4: /usr/share/vim/vim74/ftoff.vim
  5: /usr/share/vim/vimfiles/autoload/vundle.vim
  6: /usr/share/vim/vimfiles/autoload/vundle/config.vim
  7: /usr/share/vim/vim74/filetype.vim
  8: /usr/share/vim/vimfiles/ftdetect/conkyrc.vim
  9: /usr/share/vim/vimfiles/ftdetect/systemd.vim
 10: /usr/share/vim/vimfiles/ftdetect/udev.vim
 11: /usr/share/vim/vim74/ftplugin.vim
 12: /usr/share/vim/vim74/indent.vim
 13: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
 14: /usr/share/vim/vim74/plugin/gzip.vim
 15: /usr/share/vim/vim74/plugin/matchparen.vim
 16: /usr/share/vim/vim74/plugin/netrwPlugin.vim
 17: /usr/share/vim/vim74/plugin/rrhelper.vim
 18: /usr/share/vim/vim74/plugin/spellfile.vim
 19: /usr/share/vim/vim74/plugin/tarPlugin.vim
 20: /usr/share/vim/vim74/plugin/tohtml.vim
 21: /usr/share/vim/vim74/plugin/vimballPlugin.vim
 22: /usr/share/vim/vim74/plugin/zipPlugin.vim
 23: /usr/share/vim/vim74/scripts.vim

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions