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,
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
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
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
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
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
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.
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