Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Using vi in UNIX mode instead of DOS mode Date: Mon, 21 Mar 2005 14:29:51 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Reid Thompson" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j2LJU0cc022019 at one time i'd pulled these from somewhere also -- currently they are commented out in my .*vimrc. "au BufReadPre * if (&ff == "dos") |au BufReadPost * set fileformat=unix |au BufReadPost * %s/^M\+$// | endif "au BufReadPost * if (&ff == "dos") | set ff=unix | %s/^M\+$// | endif reid -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/