From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14404 invoked from network); 24 Oct 2008 12:28:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Oct 2008 12:28:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 96779 invoked from network); 24 Oct 2008 12:27:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Oct 2008 12:27:39 -0000 Received: (qmail 6793 invoked by alias); 24 Oct 2008 12:26:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13397 Received: (qmail 6763 invoked from network); 24 Oct 2008 12:26:53 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 24 Oct 2008 12:26:53 -0000 Received: from incc.be (incc.rocteur.com [65.99.212.71]) by bifrost.dotsrc.org (Postfix) with ESMTP id 93DDA80524C0 for ; Fri, 24 Oct 2008 14:26:48 +0200 (CEST) Received: by incc.be (Postfix, from userid 1000) id 0CCB64008A; Fri, 24 Oct 2008 14:24:03 +0200 (CEST) Received: from webmail.rocteur.com (localhost [127.0.0.1]) by incc.be (Postfix) with ESMTP id DB5F84003C; Fri, 24 Oct 2008 14:24:00 +0200 (CEST) Received: from 153.98.68.197 (SquirrelMail authenticated user jerry) by webmail.rocteur.com with HTTP; Fri, 24 Oct 2008 14:24:00 +0200 (CEST) Message-ID: <55477.153.98.68.197.1224851040.squirrel@webmail.rocteur.com> Date: Fri, 24 Oct 2008 14:24:00 +0200 (CEST) Subject: Re: vi mode, v launches editor From: "Jerry Rocteur" To: "Peter Stephenson" Cc: zsh-users@sunsite.dk User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.92.1/8483/Fri Oct 24 05:01:54 2008 on bifrost X-Virus-Status: Clean > On Fri, 24 Oct 2008 11:35:17 +0200 (CEST) > "Jerry Rocteur" wrote: > w> 1) How do I get a complete list of key bindings that are set up in my current shell, >> perhaps if I could find this I >> would be able to find an answer quickly > > You might want to use "bindkey -L" since it outputs it in the form of the command you need to set things up again, so it's easy to grab a command for future use. That's a bit low level, I never type control anything except for control C from time to time or control H whey I forget to set stty erase on a HP UX server ;-) What I had in mind was, when I'm on the command line and I want to go right I type l, if I want to delete to end of line I type D, that is the kind of list I thought would be useful ? >> 2) When in vi mode and editing a line and I would like to load the whole line in vi, in ksh I'm used to typing v on >> the line and this loads vi with the complete line in it. With zsh nothing happens, I'm sure this is again something >> set up in the bindings but I've just scanned through them and can't find anything, I'm in vi mode and my EDITOR and >> VISUAL settings are set. > > See the zshcontrib manual page: the function edit-command-line does what you want. zshcontrib describes a whole load of add ons that are implemented as shell functions so aren't part of the core zle stuff. > > autoload -Uz edit-command-line > zle -N edit-command-line > bindkey -M vicmd 'v' edit-command-line GREAT, I'll try it immediately, and edit-command-line was the thing I was looking for but didn't find but now I know that it would not have helped me. > By the way, if you're confused about where to look in the manual, there's a new "zshroadmap" page that should give some pointers. OK. with zshcontrib and zshroadmap and the zsh-lovers page and the from bash to z shell web page guess what I'll be doing this weekend. >> P.S. I just got a mail from an agent looking for a build consultant and it is the first time I see ZSH mentioned as the skills required! > Wow, that's certainly a change. I'm updating my CV ;-)))))))) Cheers, Jerry