summaryrefslogtreecommitdiff
path: root/runtime/macros/less.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/macros/less.sh')
-rwxr-xr-xruntime/macros/less.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/macros/less.sh b/runtime/macros/less.sh
new file mode 100755
index 000000000..256936b5e
--- /dev/null
+++ b/runtime/macros/less.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Shell script to start Vim with less.vim.
+# Read stdin if no arguments were given.
+
+if test $# = 0; then
+ vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' -
+else
+ vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@"
+fi