From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23672 invoked by alias); 24 Jul 2016 21:30:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38941 Received: (qmail 26048 invoked from network); 24 Jul 2016 21:30:52 -0000 X-Qmail-Scanner-Diagnostics: from hermes.apache.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(140.211.11.3):SA:0(-1.3/5.0):. Processed in 0.161435 secs); 24 Jul 2016 21:30:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: danielsh@apache.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at apache.org does not designate permitted sender hosts) Date: Sun, 24 Jul 2016 21:30:35 +0000 From: Daniel Shahaf To: Oliver Kiddle Cc: Zsh workers Subject: Re: PATCH: vi-pipe (Re: PATCH: vi-mode case-manipulation) Message-ID: <20160724213035.GA26225@tarsus.local2> References: <2679.1467125211@thecus.kiddle.eu> <160629093320.ZM30674@torch.brasslantern.com> <9287.1469342099@hydra.kiddle.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9287.1469342099@hydra.kiddle.eu> User-Agent: Mutt/1.5.23 (2014-03-12) Oliver Kiddle wrote on Sun, Jul 24, 2016 at 08:34:59 +0200: > Furthermore, ! in real vi forces the movement to act linewise. We can force > this by ungetting a V before calling vi-change. > > I had thought ! a good example for a shell-based widget because I > couldn't imagine anyone wanting mappings that make it a prefix so > the lack if the VI_OPER flag wouldn't matter. It now occurs to me that > noremap !o o!! > and similarly for O is a useful shortcut. Zsh equivalent if you can > type faster than KEYTIMEOUT is: > bindkey -as '!o' $'o\e!!' > Or maybe there's a better way to insert the output of a command in vim? There are «:r !» and «:!», for example :r !pwd :%!tr a-z A-Z Another way is append('.') or i_CTRL-= with systemlist(). Cheers, Daniel