Article View: comp.editors
Article #2942Re: mapping space bar
From: DWT
Date: Thu, 28 Jan 1993 04:30
Date: Thu, 28 Jan 1993 04:30
26 lines
1772 bytes
1772 bytes
In article <1993Jan27.214031.3457@bcars6a8.bnr.ca> djf@bnr.ca asks, among
other things to which I have no answers, this one question to which I do:
>BTW:
> - is there a way to pipe just *1* line through a filter? I find things like
>!jsome_command<return>
>always send two lines.
!!command or
!_command or
:.!command
>Also, is there an easy way to have *add* filtered
>output rather than have it replace the input?
Hmm. One could always duplicate the text to be filtered and then filter only
the second copy of it. Say it's a single line: yyp to duplicate it; the
cursor will then be on the lower of the two identical lines, so !!command to
filter it, leaving the upper line unchanged. I'm trying to think of some way
to use the :r !command construction (the way one usually adds the output of a
command to the buffer) but I can't figure out how to feed part of the text to
it. One can use :r !command % to operate on the entire text as most
recentlly written (not necessarily as currently in the buffer).
David W. Tamkin P. O. Box 59297 Northtown Station, Illinois 60659-0297
dattier@{holonet.net|ddsw1.mcs.com} CIS: 73720,1570 MCI Mail: 426-1818
Technical Details
Message-ID:
<C1Jr6E.rn@iat.holonet.net>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!agate!iat.holonet.net!dattierReferences:
<C1GJB0.7Br@sci.kun.nl> <C1H623.A8t@boi.hp.com> <1993Jan27.214031.3457@bcars6a8.bnr.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!agate!iat.holonet.net!dattier From: dattier@orac.holonet.net (DWT) Subject: Re: mapping space bar Message-ID: <C1Jr6E.rn@iat.holonet.net> Sender: usenet@iat.holonet.net (USENET News System) Nntp-Posting-Host: holonet.holonet.net Organization: Information Access Technologies, Inc. of Berkeley, CA References: <C1GJB0.7Br@sci.kun.nl> <C1H623.A8t@boi.hp.com> <1993Jan27.214031.3457@bcars6a8.bnr.ca> Date: Thu, 28 Jan 1993 04:30:13 GMT Lines: 26