Re: including a TAB in a vi macro
subPlanck_at_excite.com
Date: 12/21/04
- Next message: senthilS: "Comparing two file"
- Previous message: Bill Marcum: "Re: cygwin xargs in Win2k command prompt"
- In reply to: Alan Connor: "Re: including a TAB in a vi macro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: senthilS: "Comparing two file"
- Previous message: Bill Marcum: "Re: cygwin xargs in Win2k command prompt"
- In reply to: Alan Connor: "Re: including a TAB in a vi macro"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|