![]() ![]() Now when you write buffer to the disc, Vim inserts line-ending characters according to what fileformat options has been detected, essentially converting all those internal $'s with appropriate characters. It uses its own internal representation of line-breaks and that's what it displays. ![]() ![]() When list option is set, Vim displays $ character when the line break occurred no matter what fileformat option has been detected. If there are only CRLF '\r\n' or only CR '\r' or only LF '\n' line-ending characters, then the 'fileformat' is set to dos, mac and unix respectively. To determine what characters should be removed, it firstly detects in what format line endings are stored in a file. Internally when Vim reads a file into its buffer, it replaces all line-ending characters with its own representation (let's call it $'s). ![]() Just to clarify why :set list won't show CR's as ^M without e ff=unix and why :set list has nothing to do with ^M's. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |