view runtime/macros/less.bat @ 18947:d6c7b2f9aa20 v8.2.0034

patch 8.2.0034: missing check for out of memory Commit: https://github.com/vim/vim/commit/70188f5b23ea7efec7adaf74e0af797d1bb1afe8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 23 18:18:52 2019 +0100 patch 8.2.0034: missing check for out of memory Problem: Missing check for out of memory. Solution: Check for NULL after vim_strsave(). (Dominique Pelle, closes #5393)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Dec 2019 18:30:04 +0100
parents 1b584a6f446c
children
line wrap: on
line source

@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"=="" (
  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" %*
)