1

我使用 Vundle 作为我的 vim 插件管理器,我在运行时注意到了

source ~/.vimrc它给了我一个vundle加载错误。但是我的插件工作正常。

我得到的错误是

192-168-1-9:dotfiles sameeragayan$ source ~/.vimrc 
-bash: filetype: command not found
-bash:  set the runtime path to include Vundle and initialize
set rtp+=~/dotfiles/vim/bundle/Vundle.vim
call vundle#begin()



: No such file or directory
-bash: Plugin: command not found
-bash: /Users/sameeragayan/.vimrc: line 13: syntax error near unexpected token `('
-bash: /Users/sameeragayan/.vimrc: line 13: `call vundle#begin()'

当我检查路径(~/dotfiles/vim/bundle/Vundle.vim)时,我可以看到 Vundle 文件在路径中

在此处输入图像描述

下面是我的vimrc文件(符号链接到~/.vimrc

set nocompatible " be iMproved, required
filetype off     " required
filetype plugin indent on
" set the runtime path to include Vundle and initialize
set rtp+=~/dotfiles/vim/bundle/Vundle.vim
call vundle#begin()



" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

call vundle#begin()

" other plugins plugins
" E.g Plugin 'vim-airline/vim-airline'

call vundle#end()

我的 vim 版本是 - 版本 8.0.1100。MacOS 版本是 - 10.12.5 (MacOSSierra)。

PS:我确实检查了这个 SO 问题,但没有运气

4

1 回答 1

0

如前所述FDinoffmelpomene我无法vimrc从 bash 获取文件。

有关详细信息,请参阅以下 SO 问题。

于 2017-09-24T01:14:42.113 回答