[ILUG] tab replacement in vi

Kevin O'Riordan kor at compsoc.com
Tue Feb 24 16:01:08 GMT 2004


> >   how do I make a tab expand into say 4 spaces in vi? I googled, and
> > found how to make a tab a specific width, but I'd prefere to have it
> > expand to that many spaces instead.
> 
> I'm not sure about vi, but in vim that'd be
> set tabstop=4

'set expandtab' too, and probably best to 'set shiftwidth=4' while yr at
it.

-kev


-- 
    Horse sense is the thing a horse has which keeps it from betting
    on people.
        -W. C. Fields



More information about the ILUG mailing list