tpope/vim-characterize

New Line/Line Feed (NL) is reported as Carriage Return (CR)

Asheq opened this issue · 0 comments

Asheq commented

This issue is an edge-case that is perhaps not so important so feel free to close if it's not worth the trouble.

Steps to reproduce:

vim
:set fileformat=mac
i<C-v><Cr><Esc>
ga

Note that the character inserted is drawn by vim as the special character ^J, which represents a "New Line" or "Line Feed" which has a code-point of 10 (decimal) or U+000A. However, vim-characterize reports it as being "Carriage Return" which would have been drawn by vim as ^M.

Thanks for the amazing work!