在vim中组合filetype命令?

bab*_*bab 1 vim file-type

我正在使用vim wiki中的示例vimrc,并且"filetype indent plugin on"就在其中.我想知道这是否与设置"filetype plugin on"和"filetype indent on"相同,或者我是否必须在单独的命令中打开"filetype plugin"?

还有"filetype plugin indent on"与"filetype indent plugin on"相同吗?

pb2*_*b2q 6

它们可以单独提供:

filetype plugin on
filetype indent on
Run Code Online (Sandbox Code Playgroud)

这与单行命令相同:filetype indent plugin on,或filetype plugin indent on.

命令,filetype indent plugin on打开文件类型检测:filetype on.

plugin并且indent是两个单独的filetype标志.键入:filetype以查看标志的各个状态.