I see

where all contents is in one line.
It seems that this is the reason of bad encoding. I can see the characters ^M.
How can you get the encoding right in Vim?
|
feedback
|
|
Try:
Then reread your file with | |||||
|
feedback
|
|
These are "line breaks", or newlines. From your screenshot it seems the file uses Mac-style line breaks, which are a single carriage return ( Windows (and most of the Internet protocols) use both carriage return and line feed ( In vi/vim, try this command to make it recognize the file: :set ff=mac You can try using this command to convert the file to Windows-style line breaks: sed "s/\x0D/\x0D\x0A/g" yourfile.html > yourfile.new.html | ||||
|
feedback
|