++在 vim中是什么意思?
例如,:e ++ff=dos。我理解e,ff=dos只是不确定如何++适应那里。
: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
你问题中的cmd:
:e ++ff=dos
意味着再次编辑同一个文件,文件格式设置为“dos”
++用于强制命令的值,如ff,enc和其他。
使用:h ++自己在 vim 帮助中查找!