delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/14/17:18:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=xK6h
nzVp6hlmRKWhRYbbYiu5OJr5jhc25qJRV7YKrQgmjoV/cBYqegdJyRkEGfl6u92y
JfhOYuPb3/eRghNEQbL+ZXiTeki7gtbAwnru+mWK6CJgruYtRCMv+VTd8QekuS3E
2blvxcu7SlFtsqkyGw+LflNcwO2NrAhIU2Iac9w=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=3M7a835XEj
H6CJxmnlCg+GMYsr8=; b=bDilosP4nSvr2bLMzbO0TQ1Im4V3VbkI5LB6MbUXCR
LR0c+6udn0vggwXu94rxl0MsRMlbHLZ0OlADjW8bbiEct3aQBA22onLCo2glVMjc
e7vBCxAgwNdGD9xFKahpZMMakNVLTgXl6KcoHMhsIIGYW/rO5XYft0jq4cia3nNb
4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=positions, offer, cursor
X-HELO: mail-wm0-f46.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=ldWBgSwt7hg9WQTOs3HiyiLx+L6LRwmk1UBgN4WOSII=; b=ZthsSgWwQQLgTGvEJack2JOsyGk3ZNPA81vkCZJdeemfCoUD/WVndFkGlr2tl+FFjJ rUfKRSK/ZHhVXbdrZP8p+y8lZItquMlTvpwNmMwW64g1Q9FCZIV9FMsuWPewuhF2mtGE xdX79kT1hSyLdjh5YI23L3ywR6IyrlEnbbVio8GHOPYatNF0LTTRE9zZPpmAT2j3+1E3 QwvwLKgtyiWzT+etF4LgTGznidxUCzVKPWSGFucz5b3VOKYXnknHj8TpNlk8KbCxel4g YbRh2ibWDUlBfTFtru/7lmMYzI+lFCPXvlL9L+26I38c9+lXk+hfoPHK4MsheXJ8OeT2 7uhQ==
X-Gm-Message-State: AG10YOSgx7cAw5/O6m8dXj3fGtkEIn2SkPqXrAd//biETWIdKhA5fNmZB2N+P434QTZYAw==
X-Received: by 10.194.94.138 with SMTP id dc10mr15160547wjb.37.1455488294746; Sun, 14 Feb 2016 14:18:14 -0800 (PST)
Subject: Re: Vim and cursor position
To: cygwin AT cygwin DOT com
References: <56C0AC94 DOT 2040901 AT gmail DOT com> <20160214202433 DOT GA3865 AT phoenix>
From: James Darnley <james DOT darnley AT gmail DOT com>
Message-ID: <56C0FD1C.7070300@gmail.com>
Date: Sun, 14 Feb 2016 23:18:04 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
MIME-Version: 1.0
In-Reply-To: <20160214202433.GA3865@phoenix>
X-IsSubscribed: yes

--r2NUIuAH95h4qlhcWbFUWdNttSjn69w4T
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2016-02-14 21:24, Gary Johnson wrote:
> On 2016-02-14, James Darnley wrote:
>> To the maintainer, Yaakov, or anyone else who knows:
>>
>> Have the compilation options of Vim changed recently?  Is there some
>> other recent change that would cause the behaviour described below?
>>
>> Vim now appears to be remembering the last position of the cursor when
>> you open files.  I notice it most when running 'git commit', the cursor
>> never starts on the first line but would appear to be where ever I ended
>> the previous message.
>>
>> I find this jolly annoying.
>>
>> I would appreciate any insights people can offer.
>=20
> Recent releases of the Cygwin Vim package (starting with 7.4.1179-1,
> 2016-01-29) have included Red Hat's or Fedora's /etc/vimrc, which is
> loaded first when starting Vim.  That file contains a BufReadPost
> autocommand to do what you observe.
>=20
> I don't like it, either, so I have this in my ~/.vimrc:
>=20
>     " Remove the (annoying) /etc/vimrc autocommand that positions
>     " the cursor " to the location it last had when the file was
>     " closed.
>     "
>     if exists("#fedora#BufRead#*")
> 	au! fedora BufRead *
>     endif
>     if exists("#redhat#BufRead#*")
> 	au! redhat BufRead *
>     endif
>=20
> For Cygwin, you need only one of those, but I'm at home, my Cygwin
> installation is at work, and I don't remember whether Cygwin uses
> the Fedora or the Red Hat version of /etc/vimrc.
>=20
> You may want to take a look at /etc/vimrc and see if it makes any
> other settings you find undesirable and undo them in your ~/.vimrc
> as well.
>=20
> Regards,
> Gary

Thank you very much.  For everyone's information: /etc/vimrc appears to
group things under "fedora".

P.S.  Sorry about the double mail Gary.



--r2NUIuAH95h4qlhcWbFUWdNttSjn69w4T
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJWwP0cXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1NjEyRjRFOTUzQTZBREExMEU5QjI4NUFD
QzI2REQxMDk5NDEyOTA4AAoJEMwm3RCZQSkIGbwH/Ap8hBvcHwaURnyJnQX/ThJ8
R43qDLefQP/TkCC1cFBEf10FoDf0lIPRZZtywPqezLR+DETMA6V9XLlZJ5aV/dG0
m4e8dkRTXSR1GhHFivTd5aGGyN2GOGyKunpbH1JBxLdcHkWF783OUuqmM/XR+mF3
ZI53VEPgNUmpnoxn6sV742rhmNLESKd+UzlpbvLpRYzKutTmcD0NIM8IeW9nCQdX
96stJWZNLqxopjawcpCCbpHHDrhCK3OC7KFtCKLVo41bGgMB1d3L9+0qTFjY045P
rRq2CQEl1c4wIjWh1X9WQOFeobp9iefeR5BJMe4G3sZYeQYKJzYMIAcDW7hZnfw=
=bfkY
-----END PGP SIGNATURE-----

--r2NUIuAH95h4qlhcWbFUWdNttSjn69w4T--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019