aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-12 23:27:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-12 23:27:44 +1200
commite949a0316e00333f322f23fc90f14b00fb58e910 (patch)
treed3e59ed84058d5900dab2063a84cb099b0add277
parentbb24000fda64191de973de8b263682bbe2ad3209 (diff)
downloadvim-shebang-create-exec-e949a0316e00333f322f23fc90f14b00fb58e910.tar.gz
vim-shebang-create-exec-e949a0316e00333f322f23fc90f14b00fb58e910.zip
Remove unneeded variable scoping
-rw-r--r--plugin/shebang_create_exec.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/shebang_create_exec.vim b/plugin/shebang_create_exec.vim
index 401a23b..91d2f84 100644
--- a/plugin/shebang_create_exec.vim
+++ b/plugin/shebang_create_exec.vim
@@ -5,13 +5,13 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('g:loaded_shebang_create_exec') || &compatible
+if exists('loaded_shebang_create_exec') || &compatible
finish
endif
if !has('autocmd') || !has('unix') || !exists('*shellescape')
finish
endif
-let g:loaded_shebang_create_exec = 1
+let loaded_shebang_create_exec = 1
" Set up hook for before writes to check the buffer for new shebangs
augroup shebang_create_exec