On May 18, 2:42 pm, Gary Johnson <[email protected]> wrote:
>
> It doesn't matter whether or not he's using Windows provided that
> the file uses only NL line terminators or only CR-NL line
> terminators.  As long as the line terminators are purely one type or
> the other, Vim sets 'fileformat' accordingly and lets the line
> terminator be represented by \n in patterns and by \r in
> replacements.
>

Or more strongly:

By default, in most situations, \n will ALWAYS match the end of line,
whether you are on Windows, Unix, or Mac. The regular expression match
does not care what the physical representation of the line ending is,
all it cares about is that there is a line ending.

This will only be untrue, if your fileformat detection is somehow not
working, either because of a defect in the file (mixed style line
endings), a misconfigured fileformats option, deliberate bypassing of
the fileformat detection, or because of editing a file with the
'binary' option set.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to