简体   繁体   English

重新安装Vim插件vundle失败

[英]Installing vim plugin vundle fails on fresh install

I'm trying to customize Vim on my VPS. 我正在尝试在VPS上自定义Vim。 I've done everything as described in many tutorials and README.md files. 我已经完成了许多教程和README.md文件中所述的所有操作。

So, apt-get vim, vim works apt-get git pull vim created ~/.vimrc 因此,apt-get vim,vim可以apt-get git pull vim创建了〜/ .vimrc

and it looks like this: 它看起来像这样:

" vim -u test/vimrc
set nocompatible
set nowrap
filetype off
set rtp+=~/.vimrc/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'

Plugin 'L9'

call vundle#end()
filetype plugin indent on

My tree structure looks as it should: 我的树结构看起来应该像这样:

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

Now, according to manuals and README.md, I should run Vim, and it should load plugins, but no. 现在,根据手册和README.md,我应该运行Vim,并且它应该加载插件,但是没有。

line    6:
E117: Unknown function: vundle#begin
line    8:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line   10:
E492: Not an editor command: Plugin 'L9'
line   12:
E117: Unknown function: vundle#end

I've tried to read a bit existing problems that people had, they all customized things a bit, changed default folders etc, but all my thing look exactly where they should be, I was trying defaults. 我尝试阅读一些人遇到的现有问题,他们都对内容进行了一些自定义,更改了默认文件夹等,但是我所有的东西看上去都应该在正确的位置,我正在尝试使用默认值。

As well, I've seen that people are asking for the :scriptnames so here it goes: 同样,我已经看到人们在要求:scriptnames,所以就这样:

1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: ~/.vimrc
8: /usr/share/vim/vim74/ftoff.vim
9: /usr/share/vim/vim74/ftplugin.vim
10: /usr/share/vim/vim74/indent.vim
11: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
12: /usr/share/vim/vim74/plugin/gzip.vim
13: /usr/share/vim/vim74/plugin/matchparen.vim
14: /usr/share/vim/vim74/plugin/netrwPlugin.vim
15: /usr/share/vim/vim74/plugin/rrhelper.vim
16: /usr/share/vim/vim74/plugin/spellfile.vim
17: /usr/share/vim/vim74/plugin/tarPlugin.vim
18: /usr/share/vim/vim74/plugin/tohtml.vim
19: /usr/share/vim/vim74/plugin/vimballPlugin.vim
20: /usr/share/vim/vim74/plugin/zipPlugin.vim

Now, writing this here, I've noticed that obviously some default somewhere is putting things to /usr/share? 现在,在这里写下来,我已经注意到,显然某个地方的某些默认值会将东西放到/ usr / share中? Is that my problem? 那是我的问题吗?

Thanks. 谢谢。

You have 你有

set rtp+=~/.vimrc/bundle/Vundle.vim

in your vimrc, and this means your Vundle.vim is under ~/.vimrc/bundle/ . 在您的vimrc中,这意味着您的Vundle.vim~/.vimrc/bundle/ But ~/.vimrc is listed in the result of :scriptnames . 但是~/.vimrc:scriptnames的结果中列出。 So if you followed instructions from Vundle.vim, I think you should change the above line to 因此,如果您遵循Vundle.vim的指示,我认为您应该将上面的行更改为

set rtp+=~/.vim/bundle/Vundle.vim

if your ~/.vimrc is a regular file and not a directory, and you have your Vundle.vim under ~/.vim/ . 如果~/.vimrc是常规文件而不是目录,并且您的Vundle.vim~/.vim/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM