diff options
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r-- | vim/filetype.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim index 192a7283..541976f4 100644 --- a/vim/filetype.vim +++ b/vim/filetype.vim @@ -45,7 +45,7 @@ endfunction " Check whether the first line was changed and looks like a shebang, and if " so, re-run filetype detection function! s:CheckShebang() - if line('''[') == 1 && stridx(getline(1), '#!') == 0 + if line('''[') == 1 && getline(1) =~# '^#!' doautocmd filetypedetect BufRead endif endfunction |