view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 2332:645d3ef1c88e default tip

Link against tinfo _or_ tinfow When linking againt libraries for wide characters, only libtinfow should be linked.
author franky
date Mon, 25 Nov 2019 21:40:51 +0100
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()