Command line option to open mac formatted file in Vim
问题 I have a file with mac format, I know I can use :e! ++ff=mac to change to the correct fileformat. What I'd like to know is if there is a command line option I can pass when I open the file to open it directly with the correct fileformat. 回答1: You can do this using the command line, try: $ vim -c "set fileformat=mac" -c <command> executes before loading the first file. As jammessan has noted, this will only affect the first file that is loaded, subsequent files will require that you change