-
Notifications
You must be signed in to change notification settings - Fork 8
/
filetype.vim
23 lines (21 loc) · 891 Bytes
/
filetype.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
" File: filetype.vim
" Maintainer: Gavin Jaeger-Freeborn <[email protected]>
" Created: Fri 06 Mar 2020 03:28:22 PM
" License:
" Copyright (c) Gavin Jaeger-Freeborn. Distributed under the same terms as Vim itself.
" See :help license
"
" Description:
" filetype detection
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
autocmd! BufRead,BufNewFile *.org setlocal filetype=dotoo
autocmd! BufRead,BufNewFile *.h setlocal filetype=c
autocmd! Bufread,Bufnewfile */snip/* setlocal filetype=minisnip
" autocmd! BufRead,BufNewFile *.ms,*.mom,*.me,*.mm setlocal filetype=groff
autocmd! BufRead,BufNewFile tuir* setlocal filetype=markdown
autocmd! BufRead,BufNewFile *.rkt,*.rktl setlocal filetype=scheme
autocmd! BufRead,BufNewFile *.txp setlocal filetype=patoline
augroup END