view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 1853:32bceb73895c

Update Vim syntax script, add a ftdetect script
author Mikael Berthe <mikael@lilotux.net>
date Fri, 02 Apr 2010 16:46:48 +0200
parents
children c5b2789443c3
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} '
      setfiletype mcabber_log
    endif
endfunction

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