Comparing file versions on vim with git fugitive Jul 31, 2014 by Marcelo Jacobus You have foo.rb open in your feature branch and you want to check how this file was on the mater branch? Do this: :Gedit master:foo.rb Syntax: :Gedit [branch name or commit hash]:[filename] Tip: Use the “%” symbol for using the path of the current file: :Gedit master:%