Skip to content

Instantly share code, notes, and snippets.

@lsdr
Created March 5, 2009 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsdr/74324 to your computer and use it in GitHub Desktop.
Save lsdr/74324 to your computer and use it in GitHub Desktop.
# make gvim set its servername to the current dir
_basedir() {
basename `pwd`
}
alias gvim='/Applications/MacVim.app/Content/MacOS/Vim -g --servername $(_basedir)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment