Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #63003

Re: Searching online "indent"

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Searching online "indent"
Date 2015-06-05 20:41 -0700
Organization None to speak of
Message-ID <87zj4dsdu3.fsf@kst-u.example.com> (permalink)
References <indent-20150604033951@ram.dialup.fu-berlin.de> <47ee2508-4b6a-427b-8406-af6e4048d97d@googlegroups.com> <20150604142255.274b17a0ff4a4f3e7ad765c5@gmail.com> <mktgis$79o$1@dont-email.me>

Show all headers | View raw


"Bill Cunningham" <nospam@nspam.invalid> writes:
[...]
> I personally love indent. I will run 'indent -kr -nut' and the file name for 
> kandr style indentation. And the -nut switch removes all tabs. I tend to tab 
> alot.

Perhaps you can configure your editor to insert spaces when you type
<tab>.

In vim, you can do this by adding

    set expandtab

to your .vimrc.

(I'm not expressing an opinion about whether spaces or tabs are better.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Searching online "indent" David Kleinecke <dkleinecke@gmail.com> - 2015-06-04 10:01 -0700
  Re: Searching online "indent" Etienne <e.e.f.prudhomme@gmail.com> - 2015-06-04 14:22 -0400
    Re: Searching online "indent" "Bill Cunningham" <nospam@nspam.invalid> - 2015-06-05 20:59 -0400
      Re: Searching online "indent" Keith Thompson <kst-u@mib.org> - 2015-06-05 20:41 -0700

csiph-web