:h ++opt 细节
The [++opt] argument can be used to force the value of 'fileformat',
'fileencoding' or 'binary' to a value for one command, and to specify the
behavior for bad characters. The form is: >
++{optname}
Or: >
++{optname}={value}
Where {optname} is one of: *++ff* *++enc* *++bin* *++nobin* *++edit*
ff or fileformat overrides 'fileformat'
enc or encoding overrides 'fileencoding'
bin or binary sets 'binary'
nobin or nobinary resets 'binary'
bad specifies behavior for bad characters
edit for |:read| only: keep option values as if editing
a file
Run Code Online (Sandbox Code Playgroud)
您问题中的cmd:
:e ++ff=dos
Run Code Online (Sandbox Code Playgroud)
表示将fileformat设置为"dos"再次编辑同一文件
| 归档时间: |
|
| 查看次数: |
254 次 |
| 最近记录: |