vim-patch:684edc7: runtime(doc): mention generic log highlighter (#35812)

684edc7dce

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-09-17 10:13:59 +08:00
committed by GitHub
parent da66c34a4f
commit 8ec562fe52

View File

@@ -1896,6 +1896,22 @@ set "lite_minlines" to the value you desire. Example: >
:let lite_minlines = 200
LOG *ft-log-syntax*
Vim comes with a simplistic generic log syntax highlighter. Because the log
file format is so generic, highlighting is not enabled by default, since it
can be distracting. If you want to enable this, simply set the "log" filetype
manually: >
:set ft=log
To enable this automatically for "*.log" files, add the following to your
personal `filetype.vim` file (usually located in `~/.config/nvim/filetype.vim`
on Unix, see also |new-filetype|): >
augroup filetypedetect
au! BufNewFile,BufRead *.log setfiletype log
augroup END
LPC *ft-lpc-syntax*