tpope/vim-fugitive — Issue #120: Pressing <CR> on a hash gives "Can't open file" on Windows Vista
Author: bibach
Created: 2011-10-23 19:33:52+00:00
State: open

I'm running vim-fugitive cloned on 10/22/2011 with gvim 7.3 (MS-Windows 32-bit GUI version with OLE support, compiled Oct 27 2010 17:59:02) on Windows Vista Home Premium with Service Pack 1. I have the full install of msysGit-1.7.7-preview20111014 located in AppData\Local\msysgit with the "bin" and "mingw\bin" folders on my PATH.

I renamed my "plugins" folder and moved everything else out of "bundle", so the Vim environment should be pretty "clean" (other than some mappings and a few s: functions in my vimrc).

I open Vim, open a file in my repo and then ":Gedit HEAD". This gives me the buffer .git\HEAD with "refs: refs/head/master". Pressing gives me the buffer .git\refs\heads\master with a SHA1 hash. So far, so good. Pressing again produces this error:

Error detected while processing function 18_BufReadObject..18_ReplaceCmd:
line 14:
E484: Can't open file C:\Users\Brandon\AppData\Local\Temp\VIo9D57.tmp

Please let me know if there is any other information I can provide or steps I can take to troubleshoot this. I'm also open to any suggestions about a better git setup. I've been using the cygwin git for command-line usage, but installed msysGit partly so I could try out TortoiseGit (I use TortoiseSVN extensively for SVN-hosted projects, but am trying to shift to git and git-svn) and partly because I gathered that it may perform better than the cygwin version. Obviously, switching back to Linux would be a help (and believe me, I find more reasons all the time), but work-related requirements demand I maintain a Windows environment, for now.

Thanks!