leeand00
leeand00

Reputation: 26382

Viewing \n and \r characters in Vim?

Is there a way to make \n or \r characters visible in vim? (I want to be able to see if the csv file I am looking at uses just \n or \r and \n at the end of lines.

Upvotes: 8

Views: 12393

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172520

:setl fileformat?

dos means CR-LF (consistently; if only some lines contain both, it'll be listed as unix, and you'll see ^M characters at the end of those lines), unix means LF; mac means only CR newlines.

Upvotes: 8

Related Questions