Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.vimrc causes error (E10: \ should be followed by /, ? or &)

Tags:

vim

fedora

I've copy pasted this .vimrc into my /etc/vimrc in Fedora 15. Every time I use vim for anything, I get a number of errors with line numbers which don't seem to be the correct line numbers of my vimrc file because there aren't any '\'s on those lines.

I've googled this and there is a similar stack overflow question, but I believe it is irrelevant to my question.

I also removed everything that said MySys() == linux/max/windows or etc because I'm using linux so I just used the linux lines.

Any ideas?

Edit---

Here's my (barely) modified vimrc file:

https://docs.google.com/document/d/1PznK0FizGlBr6W6m9wikM334q8b6KFFCgmsF-f8MX3s/edit?hl=en_US

like image 835
Andrew Rasmussen Avatar asked Jul 14 '11 15:07

Andrew Rasmussen


1 Answers

Error you mentioned here normally happens in one of the following cases:

  1. You are trying to use line continuation inside :execute.
  2. You are trying to use line continuation when vim is in compatible mode.

To remove the second case run vim using vim -N. If no errors appear, add set nocompatible at the top of the vimrc. If errors still appear, search for exe (as :execute can be truncated to :exe) and check out whether somewhere line matching \n\s*\\ is passed to :execute.

like image 115
ZyX Avatar answered Sep 17 '22 05:09

ZyX