I'm using the latest vim/gvim (8.0.118), but have noticed this problem in the past, with other versions.
I created a file named fizzbuzz.java (outside of gvim), and opened it in a new tab in gvim on my Windows 7 PC at work, using the context menu of my file manager. After closing the tab, using :x, I discovered that I had to rename the file to FizzBuzz.java, to match the name of the class I wrote, which I did outside of gvim.
However, when I went to reopen it in the same instance of gvim, again using the context menu of my file manager, it reverts to the original casing, and when I close it with :x, it saves it as such, so that I had to rename the file again. It was only after deleting the buffer, and refreshing the buffer list in the menu that I was able to get gvim to correctly recognize the new casing of the filename.
This does not happen in gvim 7.4 on Linux (PCLinuxOS)
Is there an easier way to get gvim to recognize, and retain the change in casing of a filename on Windows, without restarting gvim?
I created a file named fizzbuzz.javayou manually created it in your explorer or used:e fizzbuzz.java?After closing the filedo you mean closing the bufferfizzbuzz.javawith:bd?I had to rename it to FizzBuzz.javain your explorer, not with:saveas?it reverts to the original casing, and saves it as suchwhere do you see it with the original name?so that I had to rename the file againagain how did you renamed it?refreshing the buffer list in the menuwhich menu? – statox Jan 06 '17 at 09:05:f %. – Antony Jan 06 '17 at 12:43