Mercurial > ~mikael > mcabber > hg
view mcabber/contrib/vim/mcabber_log-ftdetect.vim @ 2258:1cc88b0efdb9
Create history log dir if it doesn't exist
Full path is created recursively as needed.
author | Andrey Utkin <andrey_utkin@fastmail.com> |
---|---|
date | Tue, 15 Mar 2016 17:24:41 +0200 |
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()