Please, lets not turn this into a discussion of "which is better: tabs
or spaces" or "just change the tab size". A simple no or detailed how
to example for yes will do. :=)
Thanks,
Randy Beckwith
--
Matthew Weier O'Phinney
mat...@weierophinney.net
http://matthew.weierophinney.net
In vim, see
:help expandtab
Gary
As others have mentioned, vim can do this easily.
With vi it depends. If you are on an HP-UX machine, give this a spin
" ^I is a tab, ^V and ^T are control characters entered as ^V^V and ^V^t
:map! ^V^I ^T
:set tabstop=9999
Peppe [haven't come across other vi's where ^T works as on HP-UX]
--
Preben 'Peppe' Guldberg __/-\__ "Before you criticize someone, walk
pe...@xs4all.nl (o o) a mile in his shoes. That way, if
-----------------------oOOo (_) oOOo-- he gets angry, he'll be a mile away
http://www.xs4all.nl/~peppe/ - and barefoot." --Sarah Jackson
Matthew Weier O'Phinney <mat...@weierophinney.net> wrote in message news:<slrnb9bmtd...@kavalier.weierophinney.net>...
As others have noted vim can do this internally. In "standard" VI I
usually set the tabstop option according to how I want TABS to
represented on the screen and then I pipe them though the expand
program before writing the file which will replace TAB characters with
the specified number of spaces.
---
:set tabstop=4
........
:1,$! expand -t 4
:w