我正在使用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:我检查了一下this SO question,但没走运
发布于 2017-09-24 09:14:42
正如FDinoff和melpomene都提到的,我不能从bash获取vimrc文件。
有关更多详细信息,请参阅following SO question。
https://stackoverflow.com/questions/46385321
复制相似问题