From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2833 invoked by alias); 15 May 2014 14:39:06 -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: 18820 Received: (qmail 6141 invoked from network); 15 May 2014 14:39:01 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 845950.79791.bm@omp1011.mail.ir2.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1400164355; bh=MblPD/jJGRLfb+ZmVRUZgTmjz7W2dVf3QtwVgnsmHm4=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=gRIermZQKrEt/sQopz1Z6bvKrcSlM3Det3KV+lla2kqRIzDxJysgpcNEbyyeStzMT3t/GBjyPTUSFPmv4aKSQs2ODdSvuzW+RGhgD5yQyEGQslzg4qliEniVFOWE04z04KHsENllNMKTSVSXv6+kEh0TRTL3g+2xBNUsU4V4f8E= X-YMail-OSG: mXuheykVM1naYz35dWaFTBwOqAkOYexLaqU2giGBVAG8g5f zGA_Nj1mQafnIsiGQrY_qdLRtiXoY90N6uDA2L3juS4bBEeSG_nDhA83FJWc 7.zKBPkkUqRjbxybJJRL1kDlIbSbt70_bxAK9KmXkFvCy4pswYVW4ahuPq5h PXIALvfATuyFWykSKJbN4DjerIsumSkMFlXcmgg_fqsmSxHweKuaCUNQYEzn UInm_NNn_NdFuTufJHOKZ_SQGLRP4YM98df66mgphAS2.gMYf9AIO6qzEaY6 6umYhQ8EUAI50dIyYNf5NOxb7kK9bTRW6DGYYqM_y5cOyrJ5DfTjuNqBKqF. YdTfpQOPlLOeWYr3HM5m74Y0SVRa5Ip5ikcHvoFucC01aKiCMC9lJQ1B1SrS OLys2N3W.yTV.9ld4jEc.ApWIuNSM502MrfJcxmduzRsxcIzt8Yl8TWfzG2f TFTWCork7xItmyLy.W8WBDdEMMAcFQ4Q2YIpcsp7ZIQ4juNZKqeYGXR6Sm.c saFkXJJfbDESOKq5V0QEybdomINESxF0fD.lHzdC2f.mMy22.hyO4XBJ_DAH K4HdgrLzOEfhBQfuZVK0dxgLZmqO.Syrh3lzrIXmQwi0gZFfT7X9l2DHpIUY mTzrbZg5YceXS770GThfaMbHSV62zZg-- X-Rocket-MIMEInfo: 002.001,RGVhciBKdWxpZW4sCgpJIGRpZG4ndCBrbm93IHRoZSBaTEVfU1RBVEUgdmFyaWFibGUgYmVmb3JlLiBUaGVyZSdzIGFsc28gdGhlIEtFWU1BUCB2YXJpYWJsZSB3aXRoIHRoZSB0d28gbW9kZXMgIm1haW4iIGFuZCAidmljbWQiLiBUaGUgY29tYmluYXRpb24gb2YgYm90aCB2YXJpYWJsZXMgZG9lcyB0aGUgdHJpY2suIEl0IHNlZW1zIGEgbGl0dGxlIGJpdCB3ZWlyZCB0aGF0IGJvdGggdmFyaWFibGVzIGNhbm5vdCBzaG93IGFsbCB0aHJlZSBtb2RlcyBjb3JyZWN0bHkuCgpUaGFuayB5b3UgdmVyeSBtdWNoCkoBMAEBAQE- X-Mailer: YahooMailWebService/0.8.188.663 References: <1400098682.27302.YahooMailNeo@web172703.mail.ir2.yahoo.com> <140514184807.ZM24732@torch.brasslantern.com> <1400147444.59377.YahooMailNeo@web172703.mail.ir2.yahoo.com> Message-ID: <1400164355.32638.YahooMailNeo@web172702.mail.ir2.yahoo.com> Date: Thu, 15 May 2014 15:32:35 +0100 (BST) From: Sepp Tannhuber Reply-To: Sepp Tannhuber Subject: Re: vi-mode: editor function [solved] To: Julien Jehannet Cc: "zsh-users@zsh.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="262084298-1173826952-1400164355=:32638" --262084298-1173826952-1400164355=:32638 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Dear Julien,=0A=0AI didn't know the ZLE_STATE variable before. There's also= the KEYMAP variable with the two modes "main" and "vicmd". The combination= of both variables does the trick. It seems a little bit weird that both va= riables cannot show all three modes correctly.=0A=0AThank you very much=0AJ= oseph=0AJulien Jehannet schrieb am 13:28 Donnerstag, 15.M= ai 2014:=0A =0AFWIW, you could simplify your builtin redefinitions by using= the ZLE_STATE variable.=0A=0A=0AChanges from 4.3.11:=0AThe parameter ZLE_S= TATE, available in user-defined line editor widgets,=0Agives information on= the state of the line editor. =A0Currently this is=0Awhether the line edit= or is in insert or overwrite mode.=0A=0A=0A=0A=0A=0A2014-05-15 11:50 GMT+02= :00 Sepp Tannhuber :=0A=0ADear Bart,=0A>=0A>thank = you for the hint. Indeed, I found an edit-command-line module in zshcontrib= .=0A>And yes, it is loaded by oh-my-zsh. So I could fix my theme script.=0A= >=0A>Unfortunately, I have no idea how to set the MODE variable the way you= mentioned.=0A>If anybody wants to tell me, you can find the script at=A0= =0A>=A0 https://github.com/tannhuber/oh-my-zsh/blob/master/themes/budspence= r.zsh-theme=0A>But don't waste your time. Everything is working well, now.= =0A>=0A>Thank you=0A>Joseph=0A>Bart Schaefer sc= hrieb am 3:50 Donnerstag, 15.Mai 2014:=0A>=0A>On May 14,=A0 9:18pm, Sepp Ta= nnhuber wrote:=0A>} Subject: vi-mode: editor function=0A>=0A>}=0A>} I have = written a theme for the oh-my-zsh prompt from robbyrussel=0A>} because I wa= s sometimes confused about the different vi modes. My=0A>} prompt shows, at= a glance, which vi mode is active, similar to the vim=0A>} airline plugin.= =0A>[...]=0A>} Unfortunately I could not find something like vi-editor it i= n the=0A>} zshzle manual. Has anybody an idea what I can use instead? Or wh= at is=0A>} the default vicmd for [v]?=0A>=0A>There is no default binding fo= r v in vicmd mode, so you are encountering=0A>something installed for you b= y oh-my-zsh.=A0 Most likely it is the user-=0A>contributed edit-command-lin= e widget (man zshcontrib).=0A>=0A>If oh-my-zsh hasn't already pre-empted th= e zle-line-init, zle-line-finish,=0A>and zle-keymap-select widgets, you mig= ht find it more effective to set the=0A>MODE variable with those, rather th= an trying to override all the individual=0A>widgets that might change mode.= =0A=0A=0A-- =0AJ u l i e n=A0 =A0 J e h a n n e t --262084298-1173826952-1400164355=:32638--