Skip to content

Instantly share code, notes, and snippets.

@maciakl
maciakl / mvim
Created January 17, 2013 06:19 — forked from alanstevens/mvim
Run GUI MacVim from the terminal by typing in mvim. Why? Because the GUI version sometimes looks and handles better. I also usually alias gvim to this just so that I dom't mess up when I run it out of habit.
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).