VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.92k stars 2.58k forks source link

[Help] what errors in my .vimrc #487

Closed beforeload closed 10 years ago

beforeload commented 10 years ago

Error Message: image

my .vimrc file: image

my VIM version: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 4 2014 18:18:01)

Also got error :PluginInstall

E492: Not an editor command: PluginInstall
jdevera commented 10 years ago

What is your OS?

beforeload commented 10 years ago

@jdevera Linux version 2.6.9_7-7-0-0 (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Wed Jun 23 14:47:10 CST 2010 I use ssh client in windows 7. Does it matter?

AlixKang commented 10 years ago

at line 50 vundle or Vundle ??

make sure ~/.vim/bundle/vundle.vim is exist

ls ~/.vim/bundle/ | grep vundle.vim
jdevera commented 10 years ago

@beforeload No, it doesn't in this case. It looked like windows to me and then the paths would have been wrong.

Can we take a look at your whole vimrc file and also the output of find ~/.vim/bundle

jdevera commented 10 years ago

Also, just a silly question but, you have cloned vundle into ~/.vim/bundle/Vundle.vim before, right?

beforeload commented 10 years ago

@jdevera Yes, I did. But I remove the ~/.vim/ folder and try again, but got errors again.

beforeload commented 10 years ago

@AlixKang also got errors. I try the demo in the README.md. Also failed.

AlixKang commented 10 years ago

@beforeload

If you use README.md. Please modify ~/.vimrc :%s/vundle/Vundle/g

IF u do not want to modify ~/.vimrc.

Please use this code And try again

rm -rvf ~/.vim/bundle/vundle.vim  
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle.vim  
beforeload commented 10 years ago

@AlixKang image image I try vundle.vim and Vundle.vim in the .vimrc image I confused about whether something got error in the reusing package when git clone.

AlixKang commented 10 years ago

@beforeload

  1. 如果你不想更改~/.vimrc 的话,就要保证~/.vim/bundle/vundle.vim 这个文件夹存在,并且是Vundle的代码.
  2. README.md中用的是大写的Vundle, 如果你按照README.md进行操作的话,就把你的~/.vimrc中的vundle更改成大写的Vundle. begin() 和 end()除外.
casimir commented 10 years ago

Just my 2 cents here. Did you try with a minimal .vimrc? Let's say yours from line 50 to 68. It's specified in the README you should put it first in your config. Maybe something before is messing Vundle.

beforeload commented 10 years ago

@AlixKang 恩,我大小写都试了,而且也确保bundle下有vundle.vim这个文件存在,以前的版本没有问题,我今天升级了一下,才出现这个问题。 image

AlixKang commented 10 years ago

@beforeload OK. 现在我们再确认一次, 能否把这行的执行结果贴上来: ls ~/.vim/bundle/ | grep [Vv]undle.vim 如果你~/.vim/bunle存在[Vv]undle.vim的话输出结果类似于这样的 ~ $ ls ~/.vim/bundle/ | grep [Vv]undle.vim Vundle.vim/ ~ $

beforeload commented 10 years ago

@AlixKang image

jdevera commented 10 years ago

I kindly ask you to use English here, otherwise we cannot help you.

beforeload commented 10 years ago

@casimir I just try the demo.

image

@jdevera Thank you all the same. Excuse me for disturbing you. Maybe I should use the old version.

beforeload commented 10 years ago

@AlixKang image image

No zuo no die, why me try to update.

casimir commented 10 years ago

When you execute vim +scriptnames (in a terminal) do you see the vundle files? Something like:

  1: /etc/vimrc
  2: /usr/share/vim/vimfiles/archlinux.vim
  3: ~/.vimrc
  4: /usr/share/vim/vim74/ftoff.vim
  5: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
  6: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
  7: /usr/share/vim/vim74/filetype.vim
  ...

Note lines 5 and 6.

beforeload commented 10 years ago

@casimir Nope. Thanks, I got it. image

jdevera commented 10 years ago

I'll enumerate my requests, so we make sure you get them all: 1) Please provide the output of the find command I gave you earlier:

find ~./vim/bundle

(Also, would it not be easier for you to copy-paste the text rather than use screenshots?)

2) Also, please do this after you enter vim:

:set rtp?

And provide us with the output.

3) Please post your full vimrc, as somebody mentioned before, there might be something we can't see preventing this from working entirely.

jdevera commented 10 years ago

@AlixKang I kindly ask you to stop suggesting this uppercase/lowercase fiddling.

beforeload commented 10 years ago

Wrong config not about Vundle.vim. I update my vim plugins in my another PC environment, everything seems OK. @jdevera @AlixKang @casimir Thank you!