vim save a file without any modify, but git diff say "no newline at end of file"
Scenario:
After submitting the code of my colleague on the windows machine, I pulled it down here (linux) and nothing was modified. When I opened it in vim and saved it, there will be a git diff as shown below:
How to configure to ignore this difference.