summaryrefslogtreecommitdiff
path: root/.config/nvim/ftdetect/texlog.vim
blob: 65928b5b14f546196b3d12e0e5351b42c7f74ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
au BufRead *.log call s:FTlog()

function! s:FTlog()
  if exists("g:filetype_log")
    exe "setfiletype " . g:filetype_log
  elseif getline(1) =~# '^This is \S*TeX[^,]*, Version .\+$'
    setfiletype texlog
  else
    return
  endif
endfunction