Checking file format in Vim
Type “:set ff?” in command mode to see what the file format is.
Changing file format in Vim
If you want to change the file format to Unix, type the following command:
Check the result.
Type the following command to change back to Dos format: