forked from drmikehenry/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiletype.vim
43 lines (35 loc) · 1.64 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
" Customized filetypes by extension
if exists("did_load_filetypes")
finish
endif
" By default, shell scripts are "kornshell" (same as "posix").
let g:is_kornshell = 1
augroup filetypedetect
au!
" This needs to be before *.txt, otherwise CMakeLists.txt doesn't get the
" correct filetype.
au BufNewFile,BufRead CMakeLists.txt,*.cmake,*.cmake.in setfiletype cmake
au BufNewFile,BufRead *.cxx setfiletype cpp
au BufNewFile,BufRead *.dxy setfiletype c
au BufNewFile,BufRead *.ll setfiletype llvm
au BufNewFile,BufRead *.txt setfiletype text
au BufNewFile,BufRead *.wiki setfiletype Wikipedia
au BufNewFile,BufRead *.rest setfiletype rst
au BufNewFile,BufRead *.td setfiletype tablegen
au BufNewFile,BufRead bash-fc-* SetupBashFixcommand
au BufNewFile,BufRead svn-prop*.tmp setfiletype svn
au BufNewFile,BufRead leinrc setfiletype sh
au BufNewFile,BufRead .pypirc setfiletype cfg
" Setup Git-related filetypes.
au BufNewFile,BufRead *.git/MERGE_MSG setfiletype gitcommit
au BufNewFile,BufRead *.git/modules/**/MERGE_MSG setfiletype gitcommit
au BufNewFile,BufRead *.git/TAG_EDITMSG setfiletype gitrelated
au BufNewFile,BufRead *.git/modules/**/TAG_EDITMSG setfiletype gitrelated
au BufNewFile,BufRead *.git/NOTES_EDITMSG setfiletype gitrelated
au BufNewFile,BufRead *.git/modules/**/NOTES_EDITMSG setfiletype gitrelated
" Use the copy and overwrite mechanism on crontab files, otherwise crontab
" may not see the changes we make.
au FileType crontab setlocal backupcopy=yes
" Setup tmux conf files.
au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
augroup END