You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/10/10 14:40:30 UTC
Re: indenting
That's because you should set sw=4, leave hard tabs alone, and use ^T and
^D. Hard tabs happen every 8th column, and that's the way everything
defaults. If it bothers you, run expand on the file (which, naturally
defaults to 8 column tabs), but whatever you do, don't let your vi insert
4 column tabs into the file. ... which is damn near impossible.
If you really like hitting TAB in vi instead of ^T you can probably get
away with ":map ^V^I ^V^T".
Dean
On Fri, 10 Oct 1997, Rob Hartill wrote:
>
> In main/http_config.c the indenting of srm_command_loop() is a mixture
> of TABs and spaces. Other functions might be the same, I haven't looked.
>
> I've got my tabs set to 4 columns in vi and the results are very
> misleading. e.g (copy'n'pasted from vi)
>
> const char *srm_command_loop(cmd_parms *parms, void *config)
> {
> char l[MAX_STRING_LEN];
>
> while (!(cfg_getline(l, MAX_STRING_LEN, parms->infile))) {
> const char *errmsg = handle_command(parms, config, l);
> if (errmsg)
> return errmsg;
> }
>
> return NULL;
> }
>
>
>
>
>
> --
> Rob Hartill Internet Movie Database (Ltd)
> http://www.moviedatabase.com/ .. a site for sore eyes.
>
>