On Windows 8, I want to edit with Vim (v7.4), files that were originally created with Windows Notepad. However, when I begin to write, Vim/gVim spontaneously breaks lines into smaller ones by inserting CRLF at arbitrary points.
For example, given the following single line file:
If I append a single character to this line, Vim immediately breaks it into four lines:
This does not occur if the file was originally created by Vim. And I have certainly never seen this behavior in Linux. It occurs only on Windows, when editing non-Vim-created files.
Why does Vim break lines in this way? And how can I prevent it?