<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Consolas'; font-size:11pt; font-weight:400; font-style:normal;">On Saturday 05 July 2008, Michael Jansen wrote:<br>
> > This (mixed-mode) is really almost super-evil.  vim seems to do this by<br>
> > default and it's so annoying.  So even if you fix it on your editor the<br>
> > next guy to go "vi foo.cpp" has a very good chance of screwing up the<br>
> > spacing if they haven't fixed their vim either.<br>
><br>
> Boy. You really would like to have a religious war here? Pulling editors<br>
> into that discussion? You must be kidding. Isn't conding style personal<br>
> enough?<br>
><br>
> just kidding.<br>
><br>
> I fail to understand what you mean. The only thing i can think of is the<br>
> 'softtabstop' option. But that one is 0 by default. If you have problems<br>
> with vim i probably can help. 10 years vim and counting.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>If shiftwidth is 4 and tabstop is 8 with noet set, then vim will insert tabs as much as it can when indenting, using spaces to fill out to the appropriate multiple of shiftwidth.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>The fix is just to set noet.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>I'm sure emacs has the same capability.  I just don't know if it happens by default or not.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Regards,<br>
 - Michael Pyne</p></body></html>