I've been using vi for years, but vim is new to me. I just launched it with a dos formatted text file. It is nice enough to recognize that fact and handle it nicely. Is there a way to tell it to go ahead and get rid of the Carriage Returns and turn this into a UNIX format? Note, I know how to use tr to do this, so if there is not a vim command, I'll do it the old fashioned way. Thanks, Greg Freemyer Internet Engineer Deployment and Integration Specialist Compaq ASE - Tru64 Compaq Master ASE - SAN Architect The Norcross Group www.NorcrossGroup.com
From the VIM help pages...
You can use Vim to replace <NL> with <CR><NL> by reading in any mode and writing in Dos mode (":se ff=dos"). You can use Vim to replace <CR><NL> with <NL> by reading in Dos mode and writing in Unix mode (":se ff=unix"). - Herman On Fri, 31 May 2002, Greg Freemyer wrote: ->I've been using vi for years, but vim is new to me. -> ->I just launched it with a dos formatted text file. -> ->It is nice enough to recognize that fact and handle it nicely. -> ->Is there a way to tell it to go ahead and get rid of the Carriage Returns and ->turn this into a UNIX format? -> ->Note, I know how to use tr to do this, so if there is not a vim command, I'll ->do it the old fashioned way. -> -> ->Thanks, ->Greg Freemyer ->Internet Engineer ->Deployment and Integration Specialist ->Compaq ASE - Tru64 ->Compaq Master ASE - SAN Architect ->The Norcross Group ->www.NorcrossGroup.com -> -> ->
participants (2)
-
Greg Freemyer
-
Herman L. Knief