aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-15 12:58:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-15 12:58:15 +1200
commit77999aa4f231d675501e7acac91692bc8ef75fa5 (patch)
tree12cee5dce91129925448beda4e7b028cb260e153
parent4b2d193d7b3d9676e317f5515725d2c3527841f6 (diff)
downloaddotfiles-77999aa4f231d675501e7acac91692bc8ef75fa5.tar.gz
Fix comments in vim/filetype.vim
-rw-r--r--vim/filetype.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index c259c43f..3cd2b203 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -1,13 +1,17 @@
-" Override filetypes.vim
+" Override system filetype.vim
if exists('g:did_load_filetypes')
finish
endif
let g:did_load_filetypes = 1
+
+" If we don't have +autocmd or are 'compatible', do nothing, and don't try
+" again later
if !has('autocmd') || &compatible
finish
endif
-" Run the 'filetypedetect' group on a file with its extension stripped off
+" Helper function to run the 'filetypedetect' group on a file with its
+" extension stripped off
function! s:StripRepeat()
" Check we have the fnameescape() function