How to view in Vim if there is any end of line character at the end of the file?
If file content is '1234' as by
echo -n 1234 > file.txt Vim shows (with
:set list option) '1234$'.
If file content is '1234\n' as by
echo 1234 > file.txt Vim again shows '1234$'.
How do I distinguish between these two different contents if they are shown as same?
Is there any other way how to inspect EOL chars using Linux default tools?