view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 2330:3385a4bb62ef default tip

Check setting disable_random_resource correctly
author franky
date Fri, 10 May 2019 00:17:20 +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()