runtime(doc): mention generic log highlighter Commit: https://github.com/vim/vim/commit/684edc7dceea2e5c4f840eb6465595b78459e2f1 Author: Christian Brabandt <c...@256bit.org> Date: Tue Sep 16 19:01:59 2025 +0000
runtime(doc): mention generic log highlighter Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index a6fbaef09..5140e84f0 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2025 Sep 15 +*syntax.txt* For Vim version 9.1. Last change: 2025 Sep 16 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2385,6 +2385,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 `~/.vim/filetype.vim` on Unix +or `$HOME/vimfiles/filetype.vim`, see also |new-filetype|): > + + augroup filetypedetect + au! BufNewFile,BufRead *.log setfiletype log + augroup END LPC *lpc.vim* *ft-lpc-syntax* diff --git a/runtime/doc/tags b/runtime/doc/tags index c47e797c8..827ce4f7a 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -7554,6 +7554,7 @@ ft-lf-syntax syntax.txt /*ft-lf-syntax* ft-lifelines-syntax syntax.txt /*ft-lifelines-syntax* ft-lisp-syntax syntax.txt /*ft-lisp-syntax* ft-lite-syntax syntax.txt /*ft-lite-syntax* +ft-log-syntax syntax.txt /*ft-log-syntax* ft-lpc-syntax syntax.txt /*ft-lpc-syntax* ft-lua-plugin filetype.txt /*ft-lua-plugin* ft-lua-syntax syntax.txt /*ft-lua-syntax* -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uyb8s-00Ae7A-AI%40256bit.org.