Vundle.vim: Vim cannot loaded Bundel module.

Created on 24 Apr 2012  ยท  13Comments  ยท  Source: VundleVim/Vundle.vim

Error detected while processing /san01/home/chatsiri/.vimrc:
line 42:
E492: Not an editor command: Bundle 'gmarik/vundle'
line 47:
E492: Not an editor command: Bundle 'tpope/vim-fugitive'
line 48:
E492: Not an editor command: Bundle 'Lokaltog/vim-easymotion'
line 49:
E492: Not an editor command: Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
line 50:
E492: Not an editor command: Bundle 'tpope/vim-rails.git'
line 52:
E492: Not an editor command: Bundle 'L9'
line 53:
E492: Not an editor command: Bundle 'FuzzyFinder'
line 55:
E492: Not an editor command: Bundle 'git://git.wincent.com/command-t.git'
Press ENTER or type command to continue

Most helpful comment

@xautjzd

  1. what is your git editor?
  2. when you type source ~/.vimrc in a terminal running bash (or any other shell) it will not work. Shells can only source shell code. .vimrc is VimL and should be sourced from within Vim (it will automatically at startup)
  3. can you please check that vundle is installed in ~/.vim/bundle/vundle/.

All 13 comments

Hey @Chatsiri could you add more details?
Like what your vimrc looks like etc...

This might happen if you call the vi editor explicitly (to avoid any aliases) by /usr/bin/vi instead of vim.
A plain "git commit" would do this for me before I configured it to use vim instead. (git config --global core.editor "vim")

I'm trying to wade my way through Mutisk's seemingly simple answer but I can't figure out how to determine if BundleInstall is calling vi directly (or not).

And my Tree:


 ~/.vim $ tree
.
โ”œโ”€โ”€ autoload
โ””โ”€โ”€ bundle
         โ””โ”€โ”€ vundle
             โ”œโ”€โ”€ autoload
                     โ”‚ย ย  โ”œโ”€โ”€ vundle
                     โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.vim
                     โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ installer.vim
                     โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ scripts.vim
                     โ”‚ย ย  โ””โ”€โ”€ vundle.vim
                     โ”œโ”€โ”€ doc
                     โ”‚ย ย  โ””โ”€โ”€ vundle.txt
                     โ”œโ”€โ”€ LICENSE-MIT.txt
                     โ”œโ”€โ”€ README.md
                     โ””โ”€โ”€ test
                         โ”œโ”€โ”€ files
                         โ”‚ย ย  โ””โ”€โ”€ test.erl
                         โ”œโ”€โ”€ minirc.vim
                         โ””โ”€โ”€ vimrc
8 directories, 10 files
 ~/.vim $ 

Thanks for any help one might offer.

@tgott
can you put code tags around that tree please. It is the tree for ~/.vim/ I suppose?

The docs for vundle say you need these lines before you do any vundle stuff:

 set nocompatible               " be iMproved
 filetype off                   " required!

I did not find them in your vimrc

Sorry, you are correct (I should do this when I'm not distracted by two toddlers underfoot). I pasted the wrong .vimrc file. I have replaced the pastebin file with the one that I am currently using.

The file that is in the pastebin now (which includes the "set noncompatible" and the "filetype off", is the one that gives me the " "E492: Not an editor command: BundleInstall" error."

for which line? I can not find this command in your .vimrc

Sorry took so long to get back to you on this. Was helping someone else out with setting up a local repository. In any case I pondered your point for a little while and then waded through the directories to find "BundleInstall". I assumed that the install of vundle that I had done, was 99% complete other than the .vimrc file which I had copied from gmarik's site here.

So where would BundleInstall be? I assumed that the key would be found in the .vimrc file that I had copied. So I took a look at the "set rtp+=~/.vim/bundle/vundle/" directory which is called in the .vimrc file.

Inside there I found:


.
โ”œโ”€โ”€ autoload
โ”‚ย ย  โ”œโ”€โ”€ vundle
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.vim
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ installer.vim
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ scripts.vim
โ”‚ย ย  โ””โ”€โ”€ vundle.vim
โ”œโ”€โ”€ doc
โ”‚ย ย  โ””โ”€โ”€ vundle.txt
โ”œโ”€โ”€ LICENSE-MIT.txt
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ test
    โ”œโ”€โ”€ files
    โ”‚ย ย  โ””โ”€โ”€ test.erl
    โ”œโ”€โ”€ minirc.vim
    โ””โ”€โ”€ vimrc
5 directories, 10 files

and I followed the autoload directory and took a look at "vundle.vim" where it appears BundleInstall is defined. But I'm hoping that you or someone else knows this "like the back of your hand" and can tell me if I am going in the right direction with this, or point me in the right direction.

check your script by :scriptname.if vundle.vim is not in,:source vundle.vim.(I solved the problem in this way)

I always get this when using crontab -e
but not when using vim.

My current workaround is to export EDITOR=vim in .bashrc

I have the same problem.Each time,I use vim filename, it's OK,there is nothing wrong,but when I execute git commit,and it will display:

Error detected while processing /home/fedora/.vimrc:
line   23:
E492: Not an editor command: Bundle 'gmarik/vundle'
line   26:
E492: Not an editor command: Bundle 'scrooloose/nerdtree'
line   29:
E492: Not an editor command: Bundle 'kien/ctrlp.vim'
line   32:
E492: Not an editor command: Bundle 'SirVer/ultisnips'
line   36:
E492: Not an editor command: Bundle 'Valloric/YouCompleteMe'
line   41:
E492: Not an editor command: Bundle 'tomtom/tcomment_vim'
line   43:
E492: Not an editor command: Bundle 'majutsushi/tagbar'
line   45:
E492: Not an editor command: Bundle 'tpope/vim-rails'
line   46:
E492: Not an editor command: Bundle 'tpope/vim-fugitive'
line   48:
E492: Not an editor command: Bundle 'Lokaltog/vim-easymotion'
line   49:
E492: Not an editor command: Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
line   52:
E492: Not an editor command: Bundle 'tomasr/molokai'
line   55:
E492: Not an editor command: Bundle 'bling/vim-airline'
line   63:
E492: Not an editor command: Bundle 'surround.vim'
line  117:
E518: Unknown option: foldmethod=syntax
line  170:
E518: Unknown option: autochdir
Press ENTER or type command to continue

and everytime I execute source ~/.vimrc,I will get the message below:

/home/fedora/.vimrc:1: permission denied: 
/home/fedora/.vimrc:2: command not found:  My vimrc is based on the the vimrc of Amix:\n
/home/fedora/.vimrc:4: command not found:  I really appreciate his configurattion, but I also add my own features\n
/home/fedora/.vimrc:6: command not found: \n
/home/fedora/.vimrc:8: no such file or directory:  Homepage: http://xautjzd.github.com\n
/home/fedora/.vimrc:10: command not found: \n\n\n\n
/home/fedora/.vimrc:15: permission denied: 
/home/fedora/.vimrc:23: command not found: Bundle
/home/fedora/.vimrc:25: no such file or directory: File Tree plugin NERDTree\nBundle 'scrooloose/nerdtree'\n\nFile
/home/fedora/.vimrc:29: command not found: Bundle
/home/fedora/.vimrc:31: no such file or directory: snippets\nBundle 'SirVer/ultisnips'\nBundle
/home/fedora/.vimrc:35: no such file or directory:  Auto complete plugin\nBundle 'Valloric/YouCompleteMe'\n
/home/fedora/.vimrc:38: command not found: Bundle 'SuperTab'\n\n
/home/fedora/.vimrc:41: command not found: Bundle
/home/fedora/.vimrc:43: command not found: Bundle
/home/fedora/.vimrc:45: command not found: Bundle
/home/fedora/.vimrc:46: command not found: Bundle
/home/fedora/.vimrc:48: command not found: Bundle
/home/fedora/.vimrc:49: parse error near `}'

Here is my vimrc configuration:

  1 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""                                                                
  2 " My vimrc is based on the the vimrc of Amix:                                                                             
  3 "   http://amix.dk/vim/vimrc.html                                                                                         
  4 " I really appreciate his configurattion, but I also add my own features                                                  
  5 " such as vundle,ctrlp,ultisnips,etc.                                                                                     
  6 "                                                                                                                         
  7 " Author: xautjzd                                                                                                         
  8 " Homepage: http://xautjzd.github.com                                                                                     
  9 " Email: [email protected]                                                                                                
 10 "                                                                                                                         
 11 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""                                                                
 12                                                                                                                           
 13 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""                                                                
 14 " => Vim Plugins                                                                                                          
 15 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""                                                                
 16 set nocompatible               "disable vi compatibility                                                                  
 17 filetype off                   "required!                                                                                 
 18                                                                                                                           
 19 set rtp+=~/.vim/bundle/vundle/  "set runtimepath                                                                          
 20 call vundle#rc()                                                                                                          
 21                                                                                                                           
 22 " Let Vundle manage Vundle                                                                                                
 23 Bundle 'gmarik/vundle'                                                                                                    
 24                                                                                                                           
 25 "File Tree plugin NERDTree                                                                                                
 26 Bundle 'scrooloose/nerdtree'                                                                                              
 27                                                                                                                           
 28 "File switch from on to another                                                                                           
 29 Bundle 'kien/ctrlp.vim'                                                                                                   
 30                                                                                                                           
 31 "snippets                                                                                                                 
 32 Bundle 'SirVer/ultisnips'                                                                                                 
 33 "Bundle 'vim-scripts/snipMate'  
...
 67 filetype indent plugin on
...

@xautjzd

  1. what is your git editor?
  2. when you type source ~/.vimrc in a terminal running bash (or any other shell) it will not work. Shells can only source shell code. .vimrc is VimL and should be sourced from within Vim (it will automatically at startup)
  3. can you please check that vundle is installed in ~/.vim/bundle/vundle/.

@lucc

  1. I set my git editor,and it has been OK.
  2. I see it,thanks

I think this can be closed. If not reply again. Please not that vim also has a :source command.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bmyell picture bmyell  ยท  5Comments

neil-s picture neil-s  ยท  5Comments

albertz picture albertz  ยท  8Comments

tmplt picture tmplt  ยท  3Comments

unode picture unode  ยท  5Comments