docs(filetype): proper example for did_load_filetypes (#18191)

This commit is contained in:
Christian Clason
2022-04-20 21:41:35 +02:00
committed by GitHub
parent a48a0a4f7b
commit 85b13f6db4

View File

@@ -257,7 +257,10 @@ C. If your file type can be detected by the file name or extension.
disabled by setting the did_load_filetypes global variable. If this disabled by setting the did_load_filetypes global variable. If this
variable exists, $VIMRUNTIME/filetype.vim will not run. variable exists, $VIMRUNTIME/filetype.vim will not run.
Example: > Example: >
" Disable filetype.vim " Disable filetype.vim (but still load filetype.lua if enabled)
let g:did_load_filetypes = 0
" Disable filetype.vim and filetype.lua
let g:did_load_filetypes = 1 let g:did_load_filetypes = 1
< 3. To use the new filetype detection you must restart Vim. < 3. To use the new filetype detection you must restart Vim.