Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to turn off auto-indentation?

Received: by 10.180.75.8 with SMTP id y8mr657546wiv.4.1343769755309;
        Tue, 31 Jul 2012 14:22:35 -0700 (PDT)
X-BeenThere: vim_use@googlegroups.com
Received: by 10.216.228.99 with SMTP id e77ls837293weq.9.gmail; Tue, 31 Jul
 2012 14:22:21 -0700 (PDT)
Received: by 10.216.237.155 with SMTP id y27mr939136weq.11.1343769741064;
        Tue, 31 Jul 2012 14:22:21 -0700 (PDT)
Received: by 10.216.141.14 with SMTP id f14mswej;
        Tue, 31 Jul 2012 13:33:56 -0700 (PDT)
Received: by 10.216.234.135 with SMTP id s7mr934777weq.8.1343766835939;
        Tue, 31 Jul 2012 13:33:55 -0700 (PDT)
Received: by 10.216.234.135 with SMTP id s7mr934776weq.8.1343766835919;
        Tue, 31 Jul 2012 13:33:55 -0700 (PDT)
Return-Path: <yoursurrogate...@gmail.com>
Received: from jail.42.org (jail.42.org. [194.77.85.16])
        by gmr-mx.google.com with ESMTP id cd1si257259wib.1.2012.07.31.13.33.54;
        Tue, 31 Jul 2012 13:33:55 -0700 (PDT)
Received-SPF: neutral (google.com: 194.77.85.16 is neither permitted nor denied by domain of yoursurrogate...@gmail.com) client-ip=194.77.85.16;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 194.77.85.16 is neither permitted nor denied by domain of yoursurrogate...@gmail.com) smtp.mail=yoursurrogate...@gmail.com; dkim=pass header...@gmail.com
Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182])
	by jail.42.org (Postfix) with ESMTP id 9FC4712683F
	for <v...@vim.org>; Tue, 31 Jul 2012 20:33:53 +0000 (UTC)
Received: by lbon10 with SMTP id n10so4059560lbo.41
        for <v...@vim.org>; Tue, 31 Jul 2012 13:33:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=HoIXJV3EZrC+3YqqlUVKdcdaFmDN4HJYzxj+KAFdqcY=;
        b=CUXStlws46aNOzUN+GMnNrn313Btym6m0atfu0YgTGAxVxBEcI2wi6WutX254U4Rjw
         BWpkZSKDCqA8s/Ov4gWnuxbIFuYuAJvCavZ498OO3jfNhaEi3zTrvE8jcW+e42qrjxAh
         5LnXcJfsIvs6p/HUDdJReaQL/vwC7+UP/jo5bm812xMxpbf2OzghUdZhwlshg8xL+mOr
         R+JdsjxKqR0qQK7bq4oK6xiV80qxUdQEBL5/mwThezhgbruC6rHOWg3C7KOEsnh+13jM
         5QqhgMrHz+28m3yFv5Tb9fwyFHEk+Yfz0Y58IhK2elEACvDkLwdPS1au2XUEgDkPkuWN
         7bGw==
MIME-Version: 1.0
Received: by 10.152.108.144 with SMTP id hk16mr15991100lab.2.1343766827856;
 Tue, 31 Jul 2012 13:33:47 -0700 (PDT)
Received: by 10.112.23.165 with HTTP; Tue, 31 Jul 2012 13:33:47 -0700 (PDT)
Date: Tue, 31 Jul 2012 16:33:47 -0400
Message-ID: <CAJ=2b07mLOX2vgnbbAPdr58KqdkJVFYMJmPeY_hfx33ikBP...@mail.gmail.com>
Subject: How to turn off auto-indentation?
From: "Yves S. Garret" <yoursurrogate...@gmail.com>
To: v...@vim.org
Content-Type: multipart/alternative; boundary=bcaec54d4dd66f73a004c626187e

--bcaec54d4dd66f73a004c626187e
Content-Type: text/plain; charset=ISO-8859-1

Hello,

   I've started to use gVim in place of Notepad++ on my Windows 7 machine
(something I prefer since I use vim on my Ubuntu box).  However, I'm
running into 2 particular issues that are quite annoying.

1 - When I try to modify JavaScript and I write the function, the editor
automatically inserts a tab (8 spaces) before the existing spaces and
somehow after I delete the tab, it also seems to have deleted 2 spaces on
top of that!  I like code high-lighting, makes code readable, but generally
I hate any sort of auto-indentation (a preference -- or lack of a
preference? -- that spans all existing browsers and now just in VI).  How
do I turn of _all_ auto-indentation and just have me worry about that stuff?

2 - Say I'm modifying multiple files.  The "buffers" feature makes it much
easier to have multiple files in a single window and then switch between
them.  This keeps my desktop sane by having just one window to look at.
However, when I'm finished with a particular file (or it was modified by
one of my apps and I don't care about it any more) I would like to do
:close and just be done with it.  But... that buffer does not "close".
What am I doing wrong and what is the purpose of :close?

--bcaec54d4dd66f73a004c626187e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<br><br>=A0=A0 I&#39;ve started to use gVim in place of Notepad++ on =
my=20
Windows 7 machine (something I prefer since I use vim on my Ubuntu=20
box).=A0 However, I&#39;m running into 2 particular issues that are quite=
=20
annoying.<br>
<br>1 - When I try to modify JavaScript and I write the function, the=20
editor automatically inserts a tab (8 spaces) before the existing spaces
 and somehow after I delete the tab, it also seems to have deleted 2=20
spaces on top of that!=A0 I like code high-lighting, makes code readable,=
=20
but generally I hate any sort of auto-indentation (a preference -- or=20
lack of a preference? -- that spans all existing browsers and now just=20
in VI).=A0 How do I turn of _all_ auto-indentation and just have me worry=
=20
about that stuff?<br>
<br>2 - Say I&#39;m modifying multiple files.=A0 The &quot;buffers&quot; fe=
ature makes=20
it much easier to have multiple files in a single window and then switch
 between them.=A0 This keeps my desktop sane by having just one window to=
=20
look at.=A0 However, when I&#39;m finished with a particular file (or it wa=
s=20
modified by one of my apps and I don&#39;t care about it any more) I would=
=20
like to do :close and just be done with it.=A0 But... that buffer does not
 &quot;close&quot;.=A0 What am I doing wrong and what is the purpose of :cl=
ose?

--bcaec54d4dd66f73a004c626187e--