Working with windows line endings

2006-06-14 Thread Stephen Boulet
Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Thanks. _ Stephen If your desktop gets out of control easily, you probably have too much stuff on it that doesn't need to be there. Donna Smallin,

Re: Working with windows line endings

2006-06-14 Thread Tim Chase
Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. If you get files from your coworkers, they should be in CR/LF format, and Vim should recognize these. If

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 11:50:32 -0500, Tim Chase wrote Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. Thanks for the information. When I open a file with

Re: Working with windows line endings

2006-06-14 Thread A.J.Mechelynck
Tim Chase wrote: Since I need to share text files I work on with people who use notepad, how can I set vim to use windows line endings? Vim is pretty smart about automatically identifying line endings. If you get files from your coworkers, they should be in CR/LF format, and Vim should

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 19:04:33 +0200, A.J.Mechelynck wrote [snip] In addition, if your 'fileformats' option (with s) includes dos, Vim will automagically recognise Dos-like ends-of-file when reading and remember them when saving. See :help 'fileformats' :help file-formats Best

Re: Working with windows line endings

2006-06-14 Thread Tim Chase
I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings. The likely culprit is the last line in the file. You can

Re: Working with windows line endings

2006-06-14 Thread Stephen Boulet
On Wed, 14 Jun 2006 12:46:38 -0500, Tim Chase wrote I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings.

Re: Working with windows line endings

2006-06-14 Thread Gerald Lai
On Wed, 14 Jun 2006, Tim Chase wrote: I have set fileformats=unix,dos at the bottom of my _vimrc, but still see the ^M's. My guess is that the file in question has one line that lacks a ^M in the line, and thus, it vim concludes that it must use unix-style line-endings. The likely culprit