On Tue, 2005-12-20 at 11:35 -0600, Quinn, Rian P @ Link wrote:
> To whom this may concern,
> I am a VIM user and love cream for integrating new and common
> features into an already wonderful text editor. However, at work not
> all of my fellow workers like VIM, and there editors use tabs that
> are 8 spaces instead of mine which uses 4. There is a function that
> allows me to convert a file to all spaces, however I have to do this
> manually. It would be great if I could have cream do this for me
> automatically every time I save a file. This way my files all have
> the proper formatting no matter what editor you look at it with.
I'm not sure I understand.
If you all edit the same files and everybody wants their own
preference, the files must use tabs to indent, not spaces. Then
Settings > Tabstop Width can adjust the display.
If you convert a file's tabs to spaces on save, the file will take on
your preference, and everyone must agree to use the same tabstop width
or the file will turn into a mess very quickly.
If you are trying to clean up a file that uses spaces to indent you
can easily convert it to tabs as long as the indent is consistent.
Just set tabstop to the file's current indent, select all, and hit the
Tab key, then Shift Tab. All spaces will be converted to the proper
number of tabs. Then you can re-set your tabstop width to whatever you
want, just be sure Tab Expansion (Ctrl+T) is off. (Auto Wrap
automatically turns this on.)
Or perhaps you mean something else?
Steve Hall [ digitect mindspring com ]
:: Cream... something good to put in your Vim!