我正在运行Arch,我正在尝试使用Vundle来安装插件。
这是我的〜/ .vimrc
filetype off
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'Valloric/YouCompleteMe'
Plugin 'bling/vim-airline'
Plugin 'pangloss/vim-javascript'
call vundle#end()
filetype plugin indent on " Treba nam da Vim prepoznaje filetype
syntax on " Uključujemo syntax highlighting
set tabstop=4 " Broj razmaka koji tab stavlja
set shiftwidth=4 " Razmaci za autoindent
set autoindent " Auto indent!
set expandtab " Stavlja razmake umjesto taba
set smarttab " Dodatna carolija
set number " Line numbers!
set showmatch " Kada je zagrada umetnuta, na sekundu
" skoči do njenog para.
set ruler " Pokazuje Line/column brojeve
set background=dark " Lepo tamno bre
现在当我运行vim +PluginInstall +qall
时,它似乎只安装了VundleVim / Vundle.vim。但是当我:so ~/.vimrc
并重新安装它时,它会正确完成,但插件永远不会出现。
:set rtp
还会显示~/.vim/bundle
的所有路径,但它们仍未显示。我尝试重新安装vim,但无济于事。我该怎么办?
编辑#1:更新了~/.vimrc
以包含VundleVim / Vundle.vim。
答案 0 :(得分:2)
根据Vundle README,在任何其他插件之前,你必须让Vundle管理自己:
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
答案 1 :(得分:0)
键入:VundleInstall
为我工作。我花了很长时间做:PluginInstall
,但我认为一旦安装Vundle
(您可以通过键入:PluginList
进行检查),您可以执行:VundleInstall
答案 2 :(得分:0)
我在执行 PluginInstall
时遇到错误 E117,因为 'set rtp' 不起作用,解决方案是将 runtime! debian.vim
命令移到 .vimrc 的顶部