🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2901

Help : Need to map TAB to # of spaces in VI

#2901
From: Rob Gabbard
Date: Fri, 22 Jan 1993 19:26
14 lines
1257 bytes
When I hit TAB in VI I want it to simply insert three spaces instead of an
actual TAB. I know I can set ts=3 and shiftwidth=3, etc. but I simply don't
want TABs in my file.  I even defined a macro that substitued all TABs with three spaces (with the above settings) but this caused all sort of strange visual effects for obvious reasons.  Is there a way to do this ?

Thanks in advance

-- 
******************************************************************************
Rob Gabbard, SDRC                 * All statements and opinions are my own. My
Cincinnati, OH                    * employer disagrees with most of what I say
rob.gabbard@sdrc.com              * anyway.
******************************************************************************
"Life goes by pretty darn fast, if you don't stop to take a look around, you
 might miss something." - Ferris Bueller
Technical Details
Message-ID: <538@heimdall.sdrc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!heimdall!sdrc.com!rob.gabbard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!heimdall!sdrc.com!rob.gabbard
From: rob.gabbard@sdrc.com (Rob Gabbard)
Newsgroups: comp.editors
Subject: Help : Need to map TAB to # of spaces in VI
Message-ID: <538@heimdall.sdrc.com>
Date: 22 Jan 93 19:26:43 GMT
Sender: news@heimdall.sdrc.com
Followup-To: comp.editors
Organization: SDRC, Graphics and User Interface Group
Lines: 14