view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 2363:64f1899ff168

Fix format-security warnings This patch should fix the FTBFS report in Debian sid (bug 997162): the format string was omitted when displaying the message prefix and the mcabber version.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 24 Oct 2021 21:20:36 +0200
parents a63814f2e4c8
children
line wrap: on
line source

"
" Save this file in your ~/.vim/ftdetect/ folder

function! MCabber_log_ftdetect()
    if getline(1) =~ '^\u. \d\{8}T\d\d:\d\d:\d\dZ \d\{3} '
      setlocal filetype=mcabber_log
    endif
endfunction

autocmd BufRead */*mcabber/histo/* call MCabber_log_ftdetect()