aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-17 16:20:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-17 16:25:32 +1200
commit30d3c595060c6d40ca2b6a478cd79a8ca6b9ddc4 (patch)
tree4d5e45cc1d92d7181d4ec6df707550f6bfda7cb6 /vim/plugin
parentAdjust formatting of .gitmodules (diff)
downloaddotfiles-30d3c595060c6d40ca2b6a478cd79a8ca6b9ddc4.tar.gz
dotfiles-30d3c595060c6d40ca2b6a478cd79a8ca6b9ddc4.zip
Spin shebang_create_exec.vim into own distribution
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/shebang_create_exec.vim21
1 files changed, 0 insertions, 21 deletions
diff --git a/vim/plugin/shebang_create_exec.vim b/vim/plugin/shebang_create_exec.vim
deleted file mode 100644
index 401a23b8..00000000
--- a/vim/plugin/shebang_create_exec.vim
+++ /dev/null
@@ -1,21 +0,0 @@
-"
-" shebang_create_exec.vim: Make a file executable on first save if it starts with a
-" shebang.
-"
-" Author: Tom Ryder <tom@sanctum.geek.nz>
-" License: Same as Vim itself
-"
-if exists('g:loaded_shebang_create_exec') || &compatible
- finish
-endif
-if !has('autocmd') || !has('unix') || !exists('*shellescape')
- finish
-endif
-let g:loaded_shebang_create_exec = 1
-
-" Set up hook for before writes to check the buffer for new shebangs
-augroup shebang_create_exec
- autocmd!
- autocmd BufWritePre *
- \ call shebang_create_exec#Check(expand('<afile>:p'))
-augroup END