#!/bin/sh

if [ -n "$1" ]; then
	cd `dirname "$1"`
fi

exec gvim "$@"
