From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14581 invoked by alias); 13 Nov 2013 17:13:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18143 Received: (qmail 28634 invoked from network); 13 Nov 2013 17:13:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131113091326.ZM11728@torch.brasslantern.com> Date: Wed, 13 Nov 2013 09:13:26 -0800 In-reply-to: Comments: In reply to shawn wilson "function to run vim" (Nov 13, 6:18am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: shawn wilson , Zsh Users Subject: Re: function to run vim MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 13, 6:18am, shawn wilson wrote: } } A while I made a function so that I could keep one vim session (gvim } really) and that running 'vim file' would open the file in a new tab } in that session. Recently, it has stopped working.and I'm not sure } why. What version of zsh is this (and has that changed recently)? What does % print $ZSH_PATCHLEVEL say? Does the function work if you do NOT pass the --remote-tab option? Are you running vimfunc via an alias? If so, does the behavior change if you actually type out the full command word "vimfunc ..."? Try "functions -t vimfunc" to enable execution tracing and then run the function in the way that fails. By the way, I think you have a typo here: } # list version if we asked for that } if [ ! -z version ] ; then } cmd="$cmd --version" } fi The [ -z version ] is always going to fail. Needs $version instead.