aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-29 23:57:13 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 00:01:12 +1300
commit7fed281d49ee41a15a1c2c6e9d565e264a0abf1d (patch)
tree98c4804cb25a2832a296e10d45ffe3d03766115c /vim/filetype.vim
parentf0bcb51101807840770788229a2da7905370912f (diff)
downloaddotfiles-7fed281d49ee41a15a1c2c6e9d565e264a0abf1d.tar.gz
dotfiles-7fed281d49ee41a15a1c2c6e9d565e264a0abf1d.zip
Require Vim 7 for filetype and syntax highlights
It's time! The rest of the vimrc can probably be allowed to load, though.
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim9
1 files changed, 3 insertions, 6 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index 4f3839ef..2e20b744 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -566,11 +566,8 @@ augroup filetypedetect
\| runtime scripts.vim
\|endif
- " If supported, on leaving insert mode, check whether the first line was
- " changed and looks like a shebang format, and if so, re-run filetype
- " detection
- if v:version > 700
- autocmd InsertLeave * call s:CheckShebang()
- endif
+ " On leaving insert mode, check whether the first line was changed and looks
+ " like a shebang format, and if so, re-run filetype detection
+ autocmd InsertLeave * call s:CheckShebang()
augroup END