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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=t7nmteCoBpcLyn5j t/TJE6PzcR5lzp4IGHhAvx5Lw+BYXBHDTGh1to39gpuFbng8OtqdIjpCLhEk7Ymi vnXkFWQ+ew/c9/sGiUBVS+pgevzTztYr13mW+Hawf+POfHSDN++DJ5ZZ/SeBRnop Dsu1dRDh2GzeHaeUh2m0M4Ewxvg= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=XL78FCCc+nCHITooQaI/gZ +KGqk=; b=Ng6fAqgpHqqHk6RApDRKRqWusbCBmkcPQhgXkgH9htZbRqxt36E0mZ T9MUJR3B5oYdpBpD6vj/LfqEzi70I0Z7O0FOc/hofjkf5skyI1w4HLOjKnLW6kvL iEdgi7Vk0jsbaqjW5fjKDdjd25CzdOE5gWvwY/9ApaTH476mo/Vg4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=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 Date: Mon, 15 Feb 2016 00:22:57 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <682999169.20160215002257@yandex.ru> To: Gary Johnson , cygwin AT cygwin DOT com Subject: Re: Vim and cursor position In-Reply-To: <20160214202433.GA3865@phoenix> References: <56C0AC94 DOT 2040901 AT gmail DOT com> <20160214202433 DOT GA3865 AT phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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