Vundle.vim: Can't install Vundle in Windows Subsystem for Linux (Ubuntu OS)

Created on 10 Aug 2017  路  5Comments  路  Source: VundleVim/Vundle.vim

My _.vimrc_ file:

vimrc.txt

The errors I got while opening Vim through bash:

image

Could you help me configure the .vimrc file properly ?

All 5 comments

@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.

  1. Open your messed up file in vim
  2. Type ':' (to input command) and say set ff=unix
  3. Save your repaired file with ':w' and you're good to go
  • To find out why this works, run vim 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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arnsa picture arnsa  路  6Comments

neil-s picture neil-s  路  5Comments

bmyell picture bmyell  路  5Comments

genokan picture genokan  路  4Comments

kshenoy picture kshenoy  路  4Comments