view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 2233:90c25a29fb35

New option: 'gpg_path' The path to the gpg binary can now be specified in order to force the use of GnuPG version 1 on systems which have both versions installed.
author Holger Weiß <holger@zedat.fu-berlin.de>
date Sat, 21 Nov 2015 17:44:55 +0100
parents c5b2789443c3
children a63814f2e4c8
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()