X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_RX X-Spam-Check-By: sourceware.org X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+xsMvZ3a/lJGTqi615BgDP Date: Mon, 6 Feb 2012 16:15:24 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Environment variable mixing when starting non-cygwin GVIM from within cygwin terminal? Message-ID: <20120206211523.GA3090@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4F30405C DOT 9030309 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F30405C.9030309@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Mon, Feb 06, 2012 at 01:04:28PM -0800, reckoner wrote: >Hi, > >I usually start the non-cygwin gvim.exe via the rxvt cygwin console >doing something like: > >% gvim filename.py > >the problem is that, when inside GVIM, when I do: > >:py print os.environ['PATH'] > >I see a lot of cygwin paths which messes up the Python path that GVIM >wants to use. Is there a way to start gvim.exe so that this doesn't >happen? Note that I can avoid this situation by starting GVIM in a plain >vanilla CMD window, or from a standard window shortcut, instead of using >the cygwin terminal. Why not just set PATH to whatever you want prior to running your windows version of gvim? You could even make an alias: alias gvim='PATH=WHATEVER /path/to/your/gvim' -- 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