From ea0af269e536d7868564a2599f712e6f98dc0671 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 02:33:48 +1200 Subject: Split longish conditional --- autoload/shebang_change_filetype.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3