From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8868 invoked by alias); 14 Feb 2016 21:35:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8860 invoked by uid 89); 14 Feb 2016 21:35:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*F:D*yandex.ru, H*x:Home X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 14 Feb 2016 21:35:10 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1aV4Jr-0004Ll-OR ; Mon, 15 Feb 2016 00:35:04 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sun, 14 Feb 2016 21:22:57 -0000 Date: Sun, 14 Feb 2016 21:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <682999169.20160215002257@yandex.ru> To: Gary Johnson , cygwin@cygwin.com Subject: Re: Vim and cursor position In-Reply-To: <20160214202433.GA3865@phoenix> References: <56C0AC94.2040901@gmail.com> <20160214202433.GA3865@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00219.txt.bz2 Greetings, Gary Johnson! > 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. > I don't like it, either, so I have this in my ~/.vimrc: > " 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 > 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. > 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. It may be worthwhile to do this only for certain names of files. Overall, I find having editor remember where I have been in the code useful. -- With best regards, Andrey Repin Monday, February 15, 2016 00:21:34 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple