vi/vim show line endings

It works on vim:

:set list to see line-endings.

:set nolist to go back to normal.

While I don’t think you can see \n or \r\n in vi, you can see which type of file it is (UNIX, DOS, etc.) to infer which line endings it has…

:set ff

Leave a Reply

Your email address will not be published. Required fields are marked *