2013-02-26 104 views
2

++在vim中的含义是什么?例如,:e ++ff=dos。我明白eff=dos,只是不知道如何++适合那里。++在vim命令中

回答

7

: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 

手段与FILEFORMAT设置再次编辑同一个文件到 “待办事项”

3

++用于力值用于像ffenc等命令。

使用:h ++自己在vim帮助中查看这个!

+0

非常感谢!出于某种原因,我认为':h'不接受非单词字符,并且没有想到要尝试。 – tau 2013-02-26 20:04:16

+0

还有':helpgrep' ...如果这也行不通,只是简单的'grep -i -r -color = auto'searchterm'' vim的手册文件夹...:D – sjas 2013-02-26 20:05:51

+0

tau,你安装了模糊搜索器?它可以搜索vim的帮助。 – Kent 2013-02-26 20:06:15