First, handle the ^M by the following URL:
https://unix.stackexchange.com/questions/32001/what-is-m-and-how-do-i-get-rid-of-it
@mudongliang I couldn't follow up with the instructions on that link, could you clarify the issue with my case yourself ? As far as I can tell, it's the issue with the _spacing/indentation_ in my .vimrc file contents. As I followed your site, one page led to another and I was left with at least 10, not 15 tabs on my browser. Hence, being a Linux novice I'm not being able to interpret the Vim filesystem & format, so your help would be humbly appreciated. 馃檹
@sus007 The ^M thing is an extra hidden character that Windows uses for its line endings, and Linux doesn't like them. It was most likely caused by a Windows program modifying your .vimrc and thereby confusing Linux. The link @mudongliang sent with the :/s deletion _should_ work... But I never found carriage-returns that way, and there's a simple fix using vim.
vimset ff=unixvim and check out :help ff or :h fileformat.Try to avoid touching your Linux with Windows binaries, it'll mess everything up.
You can use Linux programs to modify Windows files (that's safe because Linux sees a "fake" driver that knows how to talk to Windows) but it doesn't work the other way around. Linux can touch Windows stuff, but Windows will break Linux stuff.
So maybe you opened .vimrc in notepad, or accidentally ran a Windows tool on your Ubuntu files. That can happen when WSL picks up a Windows binary from $PATH with an identical name. You can test by saying which npm (for example) and it'll tell you the binary/script it would run.
(Edit: And of course since .vimrc is preventing vim from loading, you'll need to change its name then change it back. Or make a new one.)
@TheFirstDeity I appreciate your help mate, thanks a lot. I simply had to edit my .vimrc file via Vim in stead of Notepad to fire up my Vundle. I better close this issue now.
This was useful, Thanks