i am having a simple vimrc file when i run \"source .vimrc\" in ubuntu I am getting the following error.
$ source .vimrc bash: .vimrc: line 3: syntax error
I usually do :so $MYVIMRC
Just type :so $MY[tab] and it will autocomplete for you.
You tried to source your Vim configuration file from bash. Do it from Vim:
$ vim :source /path/to/.vimrc
If it's located at ~/.vimrc, Vim will source that file automatically.
~/.vimrc