Skip to content

Instantly share code, notes, and snippets.

Created Dec 13, 2012
What would you like to do?
特定のリビジョンのファイルを Vim シンタックスハイライト付きで閲覧する
git show $1 | vim -R +"f $1" +"filetype detect" -
# Install:
# copy to $PATH and chmod +x
# Usage:
# git view <revision>:<path/to/file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment