X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=U5Nvsn1s2L3Us0g2 MEt8QwZ4Yjx/d4RJtmTMFBnzqAZf+UFKZ3DaQyM7NxCg7dovEVB/zQskHsBd4AJc E8YtVQY3ijpmi5iofmeR1whrvVqxh3YeMwGrS6v31T0ClALzHsGpsAM0DlExq/UC vUj6obNJOgggB/ZzC4xEs4PIk74= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=qg7UxonH9D7/XFZlGb5hVf /IQG8=; b=xyprzqXdJ7cIur+yDun77sdCiJHGS5pzt4mr3Dp03Qgehfh2cxvxQ/ apw4F+ADs6zorUNu7PPm2p32bqbCOOJ2Om3JFFtfhs4IHf5DG63RGEMexAd2zjKo XOc8ydYvzfgQJgyqwfgZ0ni48lPJUWTFz2WDtj943k6ZkpLNJHRSA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173025pub.verizon.net Message-id: <5362C978.1050708@cygwin.com> Date: Thu, 01 May 2014 18:23:52 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: no syntax highlighting in cygwin / vim References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 05/01/2014 04:05 PM, Glenn Strycker wrote: > "syntax on" does not seem to be supported in the Cygwin version of > vim. When I include this in my .vimrc file, I get the following > error: > > $ vi -u .vimrc .vimrc > Error detected while processing /home/gstrycker/.vimrc: > line 11: > E319: Sorry, the command is not available in this version: syntax on > Press ENTER or type command to continue Use "vim" or "gvim" if you want color. "vi" doesn't support color. You can create a .virc file without color sequences for use by "vi" if you prefer to use it as is. Otherwise, you can alias "vi" to "vim" if you prefer it to act as "vim" does. > Also, I tried to make a /usr/share/vim/vimrc file, but it does not > seem to be loading automatically. Do I need to add something to my > path, or an environment variable (e.g. "vimpath"?) or something? You may source any file you want from your .vimrc (.virc/.gvimrc) file. > Note that there is a similar thread to these questions here: > http://superuser.com/questions/505761/how-to-get-vim-color-mode-to-work-in-vim-under-cygwin And the 2nd answer there is the right one for this particular question and complements what I said above. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple