[英]++ in vim commands
What does ++
mean in vim? ++
在vim中意味着什么?
For example, :e ++ff=dos
. 例如,
:e ++ff=dos
。 I understand e
and ff=dos
, just not sure how ++
fits in there. 我理解
e
和ff=dos
,只是不确定++
是如何适应那里的。
:h ++opt
for detail :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
the cmd in your question: 您问题中的cmd:
:e ++ff=dos
means editing the same file again with fileformat set to "dos" 表示将fileformat设置为“dos”再次编辑同一文件
++
is used to FORCE values for commands like ff
, enc
and others. ++
用于FORF的值,如ff
, enc
和其他命令。
Use :h ++
to look this up yourself in the vim help! 使用
:h ++
在vim帮助下自己查看!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.