2

I'm using Vundle as my vim plugin manager and I've noticed when I run

source ~/.vimrc it gives me a vundle loading error. However my plugins are working fine.

The error I get is

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()'

When I check the path (~/dotfiles/vim/bundle/Vundle.vim) I can see the Vundle file is in the path

enter image description here

Below is my vimrc file (which is symlinked to ~/.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()

My vim version is - version 8.0.1100. MacOS version is - 10.12.5 (MacOSSierra).

PS: I did check this SO question with no luck

halfer
  • 19,824
  • 17
  • 99
  • 186
sameera207
  • 16,547
  • 19
  • 87
  • 152
  • 5
    Don't use bash to read your vimrc. – FDinoff Sep 24 '17 at 00:05
  • 2
    Why are you trying to `source ~/.vimrc` in your shell? This makes no sense; `.vimrc` is not a shell script. – melpomene Sep 24 '17 at 00:22
  • What do you mean you checked https://stackoverflow.com/questions/13365129/why-cant-i-source-my-vimrc-after-installing-vundle with no luck? It's exactly the same problem, and the answer/comments say what's wrong. – melpomene Sep 24 '17 at 00:24
  • Thanks @FDinoff , thanks for the replies . My bad, I think I miss understood the answer for the above SO question. – sameera207 Sep 24 '17 at 01:07
  • Thanks @melpomene , thanks for the replies . My bad :(, I think I miss understood the answer for the above SO question. – sameera207 Sep 24 '17 at 01:07

1 Answers1

0

As both FDinoff and melpomene mentioned, I can't source a vimrc file from bash.

Please refer to the following SO question for more details.

halfer
  • 19,824
  • 17
  • 99
  • 186
sameera207
  • 16,547
  • 19
  • 87
  • 152