Skip to content

Instantly share code, notes, and snippets.

@vdudouyt
Created December 26, 2013 08:08
Show Gist options
  • Save vdudouyt/8131121 to your computer and use it in GitHub Desktop.
Save vdudouyt/8131121 to your computer and use it in GitHub Desktop.
GVimDiff helpers
# Synopsis:
# set_base_dir ../branch1/cgi-bin/
# merge index.cgi
# merge ../style.css
alias merge=merge_changes
set_base_dir() {
export BASE_DIR=$(readlink -f $1)
}
merge_changes() {
gvimdiff $BASE_DIR/$1 $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment