[英]Combining filetype commands in vim?
I'm using the example vimrc from the vim wiki, and "filetype indent plugin on" was in it. 我使用的是来自vim Wiki的示例vimrc,其中包含“ filetype indent plugin on”。 I'm wondering if that is the same as setting "filetype plugin on" and "filetype indent on", or do I have to turn on "filetype plugin" in a separate command? 我想知道这是否与“打开文件类型插件”和“打开文件类型缩进”相同,还是我必须在单独的命令中打开“文件类型插件”?
Also is "filetype plugin indent on" the same as "filetype indent plugin on"? 还有“打开文件类型插件”和“打开文件类型插件”一样吗?
They can be provided separately: 它们可以单独提供:
filetype plugin on
filetype indent on
This is the same as the single line command: filetype indent plugin on
, or filetype plugin indent on
. 这与单行命令相同: filetype indent plugin on
或filetype plugin indent on
。
Either command, and filetype indent plugin on
turn on filetype detection: filetype on
. 无论是使用命令还是打开filetype indent plugin on
打开文件类型检测功能:打开文件filetype on
。
plugin
and indent
are two separate filetype
flags. plugin
和indent
是两个单独的filetype
标志。 Type just :filetype
to see the individual state of the flags. 只需输入:filetype
即可查看标志的各个状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.