comparison 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
comparison
equal deleted inserted replaced
1852:057b514b1f12 1853:32bceb73895c
1 "
2 " Save this file in your ~/.vim/ftdetect/ folder
3
4 function MCabber_log_ftdetect()
5 if getline(1) =~ '^\u. \d\{8}T\d\d:\d\d:\d\dZ \d\{3} '
6 setfiletype mcabber_log
7 endif
8 endfunction
9
10 autocmd BufRead */*mcabber/histo/* call MCabber_log_ftdetect()