aboutsummaryrefslogtreecommitdiff
path: root/autoload/shebang_change_filetype.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/shebang_change_filetype.vim')
-rw-r--r--autoload/shebang_change_filetype.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/shebang_change_filetype.vim b/autoload/shebang_change_filetype.vim
index afec14f..447ac2b 100644
--- a/autoload/shebang_change_filetype.vim
+++ b/autoload/shebang_change_filetype.vim
@@ -1,7 +1,8 @@
" Check whether the first line was changed and looks like a shebang, and if
" so, re-run filetype detection
function! shebang_change_filetype#() abort
- if line("'[") == 1 && strpart(getline(1), 0, 2) ==# '#!'
+ if line("'[") == 1
+ \ && strpart(getline(1), 0, 2) ==# '#!'
doautocmd filetypedetect BufRead
endif
endfunction