diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-29 11:08:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-29 11:08:40 +1200 |
commit | 197bd52242010b7060b132456757ace5294775f2 (patch) | |
tree | b50fa3b3b38bad218448a31fc4d1b18106d91495 /vim/filetype.vim | |
parent | Merge branch 'release/v1.62.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-43108dd3bad769513905c9bcebfbc75f42a8d61c.tar.gz (sig) dotfiles-43108dd3bad769513905c9bcebfbc75f42a8d61c.zip |
Merge branch 'release/v1.63.0'v1.63.0
* release/v1.63.0:
Bump VERSION
Add mapping to contract multiple blank lines
Convert a few stridx() to alternative forms
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 |