Mercurial > vim
view runtime/macros/less.bat @ 9074:3aab62b76363 v7.4.1822
commit https://github.com/vim/vim/commit/ea83bf06b92baeb6d68a10d8e8ffad289d31dae2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 8 09:40:51 2016 +0200
patch 7.4.1822
Problem: Redirecting stdout of a channel to "null" doesn't work. (Nicola)
Solution: Correct the file descriptor number.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 08 May 2016 09:45:04 +0200 |
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" %* )