aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-06 18:09:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-06 18:09:46 +1200
commita1d8401051fe5107d21bf71ebbc6964e57d46314 (patch)
tree92e42302f1ff47128cae10f827b3033d7a05d45f /vim/filetype.vim
parent01fd7b30cfcf77982c1b6fa9ba030424173dd744 (diff)
downloaddotfiles-a1d8401051fe5107d21bf71ebbc6964e57d46314.tar.gz
dotfiles-a1d8401051fe5107d21bf71ebbc6964e57d46314.zip
Add compatibility guard to filetype.vim
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index a76321a2..ccb38ca3 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -3,6 +3,9 @@ if exists('g:did_load_filetypes')
finish
endif
let g:did_load_filetypes = 1
+if !has('autocmd') || &compatible
+ finish
+endif
" Use our own filetype detection rules
augroup filetypedetect