From: Andrey Repin <anrdaemon@yandex.ru>
To: Gary Johnson <garyjohn@spocom.com>, cygwin@cygwin.com
Subject: Re: Vim and cursor position
Date: Sun, 14 Feb 2016 21:35:00 -0000 [thread overview]
Message-ID: <682999169.20160215002257@yandex.ru> (raw)
In-Reply-To: <20160214202433.GA3865@phoenix>
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
next prev parent reply other threads:[~2016-02-14 21:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-14 16:34 James Darnley
2016-02-14 20:23 ` Gary Johnson
2016-02-14 21:35 ` Andrey Repin [this message]
2016-02-14 22:18 ` James Darnley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=682999169.20160215002257@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
--cc=garyjohn@spocom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).