From owner-freebsd-questions Wed Jul 11 10:50:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by hub.freebsd.org (Postfix) with ESMTP id 1BF1837B40F; Wed, 11 Jul 2001 10:50:36 -0700 (PDT) (envelope-from leblanc@leblanc.mirrorimage.net) Received: by leblanc.mirrorimage.net (Postfix, from userid 118) id 9C9D16BBF7; Wed, 11 Jul 2001 13:50:12 -0400 (EDT) Date: Wed, 11 Jul 2001 13:50:12 -0400 From: Louis LeBlanc To: questions@FreeBSD.ORG, freebsd-questions@FreeBSD.org Subject: Re: Removing the "^M" s from files created on Windows machines Message-ID: <20010711135010.B2041@acadia.ne.mediaone.net> Reply-To: freebsd-questions@FreeBSD.org Mail-Followup-To: questions@FreeBSD.ORG, freebsd-questions@FreeBSD.org References: <911D8F660DF6D411B61F00500462BA01BE5DBA@exchange.twowaytv.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.19i X-bright-idea: Lets abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit You could just whack out a quick C filter to change all instances of '\r\n\' to '\n'. If I remember correctly, there is a way in (g)vim to apply filters to text on the fly. I don't know about adding it in a dropdown, but there may be a way. Just for the hell of it, here is just such a filter I wrote a year or so ago. Don't ask for support if you want to use it, I am hereby releasing it on an OPEN licence, meaning you can do any damn thing you want with it, except hack the nsa :) There is a script that basically just executes the gcc commands, I didn't bother to build up a legit makefile. This builds fine on Linux, but I never tried it on FreeBSD. Maybe if someone wants to put it together right, it can get added to the ports as a file tool? HTH Lou On 07/11/01 05:20 PM, John Murphy sat at the `puter and typed: > Alex Dyas wrote: > >:%s/[CTRL-V][CTRL-M]//g > > Tim McCullagh wrote: > >:%s/^V^M// > > Dru wrote: > >Or a third way of doing it: > > > >:%! col -bx > > I've just started using gvim. > How could I have this function available in one of the drop down menus? > > Thanks > John. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) leblanc@acadia.ne.mediaone.net http://acadia.ne.mediaone.net ԿԬ --k+w/mQv8wyuph6w0 Content-Type: application/octet-stream Content-Disposition: attachment; filename="rmcr.tgz" Content-Transfer-Encoding: base64 H4sIAOKQTDsAA+1XbU/jRhDms3/FHO0JJ5cEO4mJSjg+nHpIV9F+6AlVKkTIsddhhb1rrdcE VPHfO/uSxIYA114T7lQPSN7MztvuPGs/K7JI7O9sVjxv6I2CAJ+e5x8cmOdwqJ9WdrzRoO95 B/6oj3rfHwyDHQg2XJeWspChANhJyTQNWfSMHRHFNgrargjV/zCOI9F7eu1fKZ6PCLD9XtP/ QdD3sf9eEHj94UBhwe8HwXAHvE0VVJX/ef/32wC/0kjwH3kiQZJbCRHP8lDSKU2pvAPJeQpd MBBxoI3/AP4AfgkZ4In1AE55SQs4JR/U/i0spiVNY5hTeQXyikDC05TPKZsd6tlZFEF3Bt0/ whSDRzY66rgdcm1WSEFz6H5eKMGIWzJGIlIUobjrYCYJVEIWXpMCQigyjEkEkFsSlTKcpqS1 SmnDQyXLvuP8QFmUljGBo0LGlPeujiuqklHU1nWoSOm0rovkXU6UylGDmCQA0RUi68PZycnH 38/x8fnTn5Oxo5VK2u0ivCGXoZjdjB3nhtMYyiKcEbfl/OUAJLmgTCYu5iJCdGD3TE0ewtsC jhKakuPFo6f/zgWZXZLbfHLBdjuwjHzuTVpjjEZuqXR9HN47DobF3aLMVQM0ijqm0rZ2mJj0 pmxdKJ6PGZGXXNDZGCqyvw8szAjwBNQcZWGK2M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BSD.org with "unsubscribe freebsd-questions" in the body of the message