Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装用于VIM的Vundle_Vim_Vundle - Fatal编程技术网

安装用于VIM的Vundle

安装用于VIM的Vundle,vim,vundle,Vim,Vundle,我无法安装Vundle 我遵循了GitHub上的说明 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim 就这些。。。 这是cd.vim的树 ├── bundle │   └── Vundle.vim │   ├── autoload │   │   ├── vundle │   │   │   ├── config.vim │   │   │   ├── ins

我无法安装Vundle

我遵循了GitHub上的说明

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
就这些。。。 这是cd.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
└── $MYVIMRC
7个目录,13个文件

还有,vimrc

set nocompatible               " be iMproved
filetype off 
为了编辑vim中使用的.vimrc I:

:e $MYVIMRC

您能帮助安装Vundle吗

就像@FDinoff说的,你错过了应该放在你
.vimrc
里的东西

下面是它的样子:

" vundle {{{1

" needed to run vundle (but i want this anyways)
set nocompatible

" vundle needs filtype plugins off
" i turn it on later
filetype plugin indent off
syntax off

" set the runtime path for vundle
set rtp+=~/.vim/bundle/Vundle.vim

" start vundle environment
call vundle#begin()

" list of plugins {{{2
" let Vundle manage Vundle (this is required)
"old: Plugin 'gmarik/Vundle.vim'
Plugin 'VundleVim/Vundle.vim'

" to install a plugin add it here and run :PluginInstall.
" to update the plugins run :PluginInstall! or :PluginUpdate
" to delete a plugin remove it here and run :PluginClean
" 

" YOUR LIST OF PLUGINS GOES HERE LIKE THIS:
Plugin 'bling/vim-airline'

" add plugins before this
call vundle#end()

" now (after vundle finished) it is save to turn filetype plugins on
filetype plugin indent on
syntax on
如果需要,您可以查看my
.vimrc

如注释中所述,在将插件添加到
.vimrc

安装插件的步骤

  • 调用vundle#begin()
    调用vundle#end()
  • 保存
    .vimrc
  • 键入
    :PluginInstall
  • 更新插件

  • 键入
    :PluginInstall
    :插件更新
  • 删除插件

  • 将其从
    .vimrc
  • 保存
    .vimrc
  • 类型
    :PluginClean

  • 我完全按照@linluk所描述的步骤做了,但是当我用
    vim
    打开一个文件时,我没有看到新安装插件的结果。 例如,我安装了“电源线”插件,该插件应该会在我的vim屏幕底部返回一个外观奇特的状态行,但当我打开一个新文件时,它的外观仍然与以前一样。
    唯一适合我的插件是“YCM”(YouCompleteMe),但我无法解释为什么它适用于YCM,而不适用于电力线或其他插件,如ultisnips。

    如果Vundle安装有问题,请按照以下步骤操作:

    • 删除vim文件(例如:.vim、.vimrc等)和vundle
    • 在终端安装vundle中复制并粘贴代码

      • 如果在安装过程中出现任何问题,请按ENTER

        sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)"
        

    您错过了安装的其余部分。(即,您放在vimrc中的部件)“Plugin'gmarik/Vundle.vim'”行在做什么?它在调用什么?似乎现在它可以更改为“VundleVim/Vundle.vim”,因为存储库已移动。在将插件添加到.vimrc后,您是否从vim内部运行了
    :PluginInstall
    命令?发现我想安装一个不推荐使用的插件,但该插件无法正常工作。