> Earlier I set my tabstop to 4 to give me some more screen room in my C
> program .c files. The problem is that when I print out the source code
> (eg. for a Uni assignment) or when someone else edits it, the tabstops
> are by default 8 spaces.
i run the code through expand(1) to have it expand my tabs to 4
spaces. i setup a macro to do it for me within vi.
map E :%!expand -4
that works in any vi.
for vim specifically, i've used:
set expandtab
to have it insert spaces instead of tabs for me.
--
____________________}John Flinchbaugh{______________________
| glynis@hjsoft.com http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~
Attachment:
pgpAPGVbo6O4B.pgp
Description: PGP signature