From b8ffbf999555c72fa10aa9af3bca310ed3acf5c4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 17 Jul 2018 16:15:31 +1200 Subject: First version --- doc/shebang_create_exec.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/shebang_create_exec.txt (limited to 'doc/shebang_create_exec.txt') diff --git a/doc/shebang_create_exec.txt b/doc/shebang_create_exec.txt new file mode 100644 index 0000000..1cf16be --- /dev/null +++ b/doc/shebang_create_exec.txt @@ -0,0 +1,24 @@ +*shebang_create_exec.txt* For Vim version 7.1 Last change: 2018 July 17 + +DESCRIPTION *shebang_create_exec* + +This plugin sets up a |BufWritePre| hook to check whether a buffer contains a +Unix shebang like `#!/bin/sh` as the first line, and is being saved to a new +file; if so, it attempts to make the file executable with `chmod +x` after a +successful save. + +REQUIREMENTS *shebang_create_exec-requirements* + +This plugin only loads if 'compatible' is not set, and requires the |+autocmd| +and |+unix| features. It also requires the |shellescape()| function that was +added in |version-7.0| patch 111. + +AUTHOR *shebang_create_exec-author* + +Written and maintained by Tom Ryder . + +LICENSE *shebang_create_exec-license* + +Licensed for distribution under the same terms as Vim itself (see |license|). + + vim:tw=78:ts=8:ft=help:norl: -- cgit v1.2.3