# 如何強制vim將文件解釋為dos格式

I don't want to mess with the file, as vim is the only viewer. It is going to be used by other apps, and in fact, may even be in the middle of being written to. I just want vim to interpret as a Unix carriage return. In case it matters, I typically open files with either

 :e path/to/file
:split path/to/file
:vsplit path/to/file


## 最佳答案

:e ++ff=dos filename


:e ++ff=dos %