httpd-dev mailing list archives

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

In article <Pine.BSF.3.95q.970720122343.16567C-100000@valis.worldgate.com> 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

Greetings,
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message