Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: function to run vim
- X-seq: zsh-users 18143
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: shawn wilson <ag4ve.us@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: function to run vim
- Date: Wed, 13 Nov 2013 09:13:26 -0800
- In-reply-to: <CAH_OBicAK=-Kkz9b8T9oDZAgvb+DWToUMSVh2oN2fx_WBioRgQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author