This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Formatting, tabs vs spaces.


Chris Fairles escreveu:

Sorry, I mean, it will insert as many tab chars as required (i.e.
floor(indent / 8)) and pad with mod 8 spaces.

Well, if you're talking about expandtab, vim's manual says:


"In Insert mode: Use the appropriate number of spaces to insert a
<Tab>.  Spaces are used in indents with the '>' and '<' commands and
when 'autoindent' is on.  To insert a real tab when 'expandtab' is
on, use CTRL-V<Tab>."

Also the smarttab option help says:
"When 'expandtab' is not set, the number of spaces is minimized by using <Tab>s.", which is the algorithm you're describing.


What you're talking about is when the tabstop value is different from the softtabstop and expandtab is off.

Regards,
rod


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]