httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Ralf S. Engelschall)
Subject Re: tabs
Date Mon, 21 Jul 1997 17:03:25 GMT

In article <> you wrote:
> On Sun, 20 Jul 1997, Dean Gaudet wrote:

> > And why am I complaining about this?  Well because in my experience tabs
> > will always creep into files, they're more "natural" somehow than whacks

> vi foo
> :set ai
> :set list
> i        this
> that<ESC>

> The line with that on will probably have a tab in front of it.  This makes
> it very annoying to keep tabs out.  There are workarounds, but I don't
> like them.  My best solution is %!expand since it avoids messing up other
> things I like, but it is annoying and easy to forget.

I have the following in my .vimrc for easy replacing tabs with spaces and to
switch the tab setting:

map ^Xt :%!expand -4^M^M
map ^X8 :set ts=8^M
map ^X4 :set ts=4^M

                                       Ralf S. Engelschall

View raw message