zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: shawn wilson <ag4ve.us@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: function to run vim
Date: Wed, 13 Nov 2013 09:13:26 -0800	[thread overview]
Message-ID: <131113091326.ZM11728@torch.brasslantern.com> (raw)
In-Reply-To: <CAH_OBicAK=-Kkz9b8T9oDZAgvb+DWToUMSVh2oN2fx_WBioRgQ@mail.gmail.com>

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.


  reply	other threads:[~2013-11-13 17:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13 11:18 shawn wilson
2013-11-13 17:13 ` Bart Schaefer [this message]
2013-11-14  1:24   ` shawn wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=131113091326.ZM11728@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=ag4ve.us@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).