aboutsummaryrefslogtreecommitdiff
path: root/plugin/shebang_create_exec.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/shebang_create_exec.vim')
-rw-r--r--plugin/shebang_create_exec.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/shebang_create_exec.vim b/plugin/shebang_create_exec.vim
index 1af3fe9..c93628a 100644
--- a/plugin/shebang_create_exec.vim
+++ b/plugin/shebang_create_exec.vim
@@ -5,10 +5,10 @@
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
-if exists('loaded_shebang_create_exec') || &compatible
+if exists('loaded_shebang_create_exec') || &compatible || v:version < 700
finish
endif
-if !has('autocmd') || !has('unix') || !exists('*shellescape')
+if !has('unix')
finish
endif
let loaded_shebang_create_exec = 1
@@ -17,5 +17,5 @@ let loaded_shebang_create_exec = 1
augroup shebang_create_exec
autocmd!
autocmd BufWritePre *
- \ call shebang_create_exec#Check(expand('<afile>:p'))
+ \ call shebang_create_exec#(expand('<afile>:p'))
augroup END