vim - vim命令中的++

标签 vim vi

++在vim中是什么意思?

例如,:e ++ff=dos。我了解eff=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”编辑同一文件

关于vim - vim命令中的++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15098084/

相关文章:

vim - 在 Vim 中拼写检查整个文件

Vim在复制粘贴时缩进每一行代码

search - 如何在 vi 搜索和替换中包含正斜杠

vim - 强制自己掌握 vi 的最佳方法是什么?

linux - 我的 Vim 7.3 与 Vim 7.1 的行为方式不一样?

vim - 卸载 vim vundle 包管理器

linux - 为什么 vim 语法在不同终端上高亮?

vim - Vim 中的 remap、noremap、nnoremap 和 vnoremap 映射命令有什么区别?

vim - 无法使jedi-vim插件正常工作

vim - 使用带有斯堪的纳维亚字符的 vim+LaTeX