Skip to content

Instantly share code, notes, and snippets.

@k-takata
Created April 28, 2012 09:04
Show Gist options
  • Save k-takata/2517336 to your computer and use it in GitHub Desktop.
Save k-takata/2517336 to your computer and use it in GitHub Desktop.
batch file to start Vim with less.vim.
@echo off
rem batch file to start Vim with less.vim.
rem Read stdin if no arguments were given.
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" %*
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment