Re: [ILUG] Re: vi as a html editor

From: Nick Murtagh (murtaghn at domain tcd.ie)
Date: Mon 01 Apr 2002 - 01:13:46 IST


On Monday 01 April 2002 00:33, David Golden wrote:
> I gleaned this information straight from the vim manual:

I find it very hard to find anything in the vim manual. It's
nearly as bad as info.

> filetype indent off

yes! Thank you. Sanity is restored.

> in you .vimrc to control whether it uses the files, or you could tweak the
> file to your liking, by editing it - on my system, it's the file
> /usr/share/vim/indent/html.vim

I'd like to make it work, with 2 spaces instead of 8, but I suspect I'd
have to learn a whole new programming language.

> As to why set ts=2 doesn't work:
>
> The indents are according to a number of character spaces calculated
> by html.vim - so if you set ts=2, then it might, for example, insert 4
> ASCII tab characters where it would have inserted only 1 with set ts=8,
> assuming noexpandtab.

ah. sneaky.

> (Aside: tabstop (ts) should normally be kept at 8, change softtabstop (sts)

I vaguely recall knowing that at some point... I was clutching at straws with
the ts thing anyway :)

Thanks David!

Nick



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:15:46 GMT