mcabber/contrib/vim/mcabber_log-ftdetect.vim
author Mikael Berthe <mikael@lilotux.net>
Fri, 02 Apr 2010 16:46:48 +0200
changeset 1853 32bceb73895c
child 1855 c5b2789443c3
permissions -rw-r--r--
Update Vim syntax script, add a ftdetect script

"
" 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} '
      setfiletype mcabber_log
    endif
endfunction

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