aboutsummaryrefslogtreecommitdiff
path: root/runtime/scripts/less.bat
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-11-25 19:15:05 +0000
committerJosh Rahm <joshuarahm@gmail.com>2024-11-25 19:27:38 +0000
commitc5d770d311841ea5230426cc4c868e8db27300a8 (patch)
treedd21f70127b4b8b5f109baefc8ecc5016f507c91 /runtime/scripts/less.bat
parent9be89f131f87608f224f0ee06d199fcd09d32176 (diff)
parent081beb3659bd6d8efc3e977a160b1e72becbd8a2 (diff)
downloadrneovim-c5d770d311841ea5230426cc4c868e8db27300a8.tar.gz
rneovim-c5d770d311841ea5230426cc4c868e8db27300a8.tar.bz2
rneovim-c5d770d311841ea5230426cc4c868e8db27300a8.zip
Merge remote-tracking branch 'upstream/master' into mix_20240309
Diffstat (limited to 'runtime/scripts/less.bat')
-rw-r--r--runtime/scripts/less.bat10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/scripts/less.bat b/runtime/scripts/less.bat
new file mode 100644
index 0000000000..f80bf9209e
--- /dev/null
+++ b/runtime/scripts/less.bat
@@ -0,0 +1,10 @@
+@echo off
+rem batch file to start Vim with less.vim.
+rem Read stdin if no arguments were given.
+rem Written by Ken Takata.
+
+if "%1"=="" (
+ nvim --cmd "let no_plugin_maps = 1" -c "runtime! scripts/less.vim" -
+) else (
+ nvim --cmd "let no_plugin_maps = 1" -c "runtime! scripts/less.vim" %*
+)