【发布时间】:2014-10-27 17:24:24
【问题描述】:
我正在尝试使用 Vundle 安装 vim-scala 和 vim-sensible 插件。我按照这里的指示:https://github.com/gmarik/Vundle.vim
在我的~/.vim 目录中,我有一个名为“bundle”的文件夹,其中包含我从教程下载的 Vundle.vim 目录。
在我的~/.vimrc 我有:
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-sensible'
Plugin 'derekwyatt/vim-scala'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
然后我打开 Vim,输入
:PluginInstall
我的插件显示安装成功。但是,当我再次打开 Vim 时,没有任何变化。
编辑:我应该注意到我在使用 Pathogen 时遇到了同样的问题,所以我认为这不是 Vundle 中的错误。
编辑:我的.vim 和.vimrc 在/root/.vim;我在 Linux 上运行。
【问题讨论】:
-
你有
set nocompatible和filetype off吗?这也是必需的。除此之外,如果您认为这是一个错误,请在 github 上打开一个包含大致此内容的问题。 -
@Cubic,我很抱歉,我确实有这些。编辑了我的帖子。
-
只是为了检查:你的插件实际上最终在 '~/.vim/bundle' 中?我假设您在 linux 或 osx 上运行?
-
正确,安装后在~/.vim/bundle 中可以看到插件。我在 14.04 Linux 上运行
-
"set rtp" 的输出是什么(它会打印你的运行时路径,它应该包括像 "~/.vim/bundle/vim-sensible/..." 这样的条目。
标签: vim vim-plugin vundle