#!/bin/sh -f # -f is used to stop file name globbing ## author: parv, parv UNDERSCORE AT yahoo DOT com ## date: nov 19 2002 ## ## license: free to use as you please w/ proper credit given. ## use at your own risk. all responsibility for potential damage, loss, ## etc. is disclaimed. ## ## name: vimhelp ## ## purpose: getting help from vim for given number of arguments passed ## to :help in full window ## ## usage: ## vimhelp magic ## vimhelp magic fold split # vim location VIM=vim # configuration file to use if exists & readable CF=${HOME}/cf/vim/vim.cf [ -f "$CF" -a -r "$CF" ] && VIM="$VIM -u $CF" # loop on given arguments for h in $@ do $VIM -M +":help $h |:only " done