我使用 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 问题,但没有运气