1
0
mirror of https://github.com/luzifer/vim.git synced 2024-09-19 19:12:55 +00:00
vim/after/ftplugin/abp.vim

7 lines
197 B
VimL
Raw Normal View History

function! s:DetectABP()
if getline(1) =~ '\c^\s*\[\s*adblock\s*\(plus\s*\(\d\+\(\.\d\+\)*\s*\)\?\)\?]\s*$'
set filetype=abp
endif
endfunction
au BufNewFile,BufRead *.txt call s:DetectABP()