From cbb65c137e969cae4d442411c6796a6027316a2e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 8 Jul 2018 17:24:41 +1200 Subject: Move shebang updating into filetype.vim Much more logical location. --- vim/plugin/shebang_update.vim | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 vim/plugin/shebang_update.vim (limited to 'vim/plugin') diff --git a/vim/plugin/shebang_update.vim b/vim/plugin/shebang_update.vim deleted file mode 100644 index 60031e26..00000000 --- a/vim/plugin/shebang_update.vim +++ /dev/null @@ -1,20 +0,0 @@ -" -" shebang_update.vim: If the first line of a file was changed, re-run " -" scripts.vim to do shebang detection to update the filetype. -" -" Author: Tom Ryder -" License: Same as Vim itself -" -if exists('g:loaded_shebang_update') || &compatible - finish -endif -if v:version < 700 - finish -endif -let g:loaded_shebang_update = 1 - -" Call the update function whenever leaving insert mode -augroup shebang_update - autocmd! - autocmd InsertLeave * call shebang#Update() -augroup END -- cgit v1.2.3