Re: including a TAB in a vi macro

subPlanck_at_excite.com
Date: 12/21/04


Date: 21 Dec 2004 09:21:50 -0800


Alan Connor wrote:
> On 16 Dec 2004 08:59:07 -0800, subPlanck@excite.com
> <subPlanck@excite.com> wrote:
>
> > I'm unable to include a TAB character in a vi (POSIX-compliant)
> > macro:
> >
> > map T :1,$s/TAB/ /g
> >
> > I've tried to enter Ctrl-V Ctrl-I as well as pressing the TAB
> > key, but both didn't execute.
> >
> > I've tried to use \t with a variable number of escaping
> > backslashes, but it didn't work either; I also tried to include
> > the octal code for TAB, \011, to no avail. I'm at my wit's
> > end...
> >
> > Just to clarify, I want to do the substitution on a working
> > file in vi; I do not want to use filters, like sed, for this
> > function; that's too easy...
> >
> > z.entropic
> >
>
> try holding down Ctrl and typing v v v i
>
> comp.editors is basically a *vi* group.
>
> AC

Thank you; your post made me go over my exrc macro file and it turned
out I forgot to put the second slash in the g/^V^I/s// /g command's //
pair... I really should have used the simpler
%s/^V^I/ /g command.

I'm really ashamed of myself... ;-)

z.entropic



Relevant Pages

  • Combinatory logic
    ... Logics that replace variables with functions in order to clarify ... intuitive operations on variables such as substitution. ... arithmetic built from combinatory logic can contain all partial ...
    (sci.logic)
  • Re: "Failed to" still a preferred substitute for "not"?
    ... The sun failed to shine today. ... I fail to want sugar in my tea." ... What good is being an executive if you never get to execute anyone? ...
    (alt.usage.english)
  • Re: Variable/multi-line substitution
    ... You can use curly brackets to clarify what you ... use strict; ... use warnings; ... substitution for too difficult of a task, because I can't get it to ...
    (comp.lang.perl.misc)
  • Re: Application that makes EXE
    ... What i like to do is just analogous to making a self extracting file. ... an .EXEof course and when you execute it it performs a certain ... I would like also to clarify Nobody's idea. ... details about using the ShellExecute command? ...
    (microsoft.public.vc.mfc)
  • Re: Calculations with , as decimal delimiter
    ... I have a loop and want to get rid of the substitution: ... and it takes just a fraction of a microsecond to execute. ...
    (comp.lang.perl.misc)