aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 17:24:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 17:24:41 +1200
commitcbb65c137e969cae4d442411c6796a6027316a2e (patch)
treee380d0125a23ea905652c37ca335317997b28529 /vim/plugin
parenteb3869b1e1f884da397fbe39716ed5448cf3f97e (diff)
downloaddotfiles-cbb65c137e969cae4d442411c6796a6027316a2e.tar.gz
dotfiles-cbb65c137e969cae4d442411c6796a6027316a2e.zip
Move shebang updating into filetype.vim
Much more logical location.
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/shebang_update.vim20
1 files changed, 0 insertions, 20 deletions
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 <tom@sanctum.geek.nz>
-" 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