Tech Journal Back to Tech Journal

How do I change file modes in vim?

Changing the file modes in vim between "\r\n", "\n" can be done by using the command

:set ff=unix
 - or -
:set ff=dos
    

Win32 GVim's default is DOS ("\r\n") and linux's is UNIX ("\n"). Either will only display which format the file is saved in only when the format is NOT the default.

Last updated on 2005-05-06 14:00:00 -0800, by Shalom Craimer

Back to Tech Journal